Uses of Class
java.nio.ShortBuffer
| Package | Description |
|---|---|
| java.nio |
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
|
-
Uses of ShortBuffer in java.nio
Methods in java.nio that return ShortBuffer Modifier and Type Method Description static ShortBufferShortBuffer. allocate(int capacity)Allocates a new short buffer.abstract ShortBufferShortBuffer. asReadOnlyBuffer()Creates a new, read-only short buffer that shares this buffer's content.abstract ShortBufferByteBuffer. asShortBuffer()Creates a view of this byte buffer as a short buffer.ShortBufferShortBuffer. clear()Clears this buffer.abstract ShortBufferShortBuffer. compact()Compacts this buffer (optional operation).abstract ShortBufferShortBuffer. duplicate()Creates a new short buffer that shares this buffer's content.ShortBufferShortBuffer. flip()Flips this buffer.ShortBufferShortBuffer. get(int index, short[] dst)Absolute bulk get method.ShortBufferShortBuffer. get(int index, short[] dst, int offset, int length)Absolute bulk get method.ShortBufferShortBuffer. get(short[] dst)Relative bulk get method.ShortBufferShortBuffer. get(short[] dst, int offset, int length)Relative bulk get method.ShortBufferShortBuffer. limit(int newLimit)Sets this buffer's limit.ShortBufferShortBuffer. mark()Sets this buffer's mark at its position.ShortBufferShortBuffer. position(int newPosition)Sets this buffer's position.abstract ShortBufferShortBuffer. put(int index, short s)Absolute put method (optional operation).ShortBufferShortBuffer. put(int index, short[] src)Absolute bulk put method (optional operation).ShortBufferShortBuffer. put(int index, short[] src, int offset, int length)Absolute bulk put method (optional operation).abstract ShortBufferShortBuffer. put(short s)Relative put method (optional operation).ShortBufferShortBuffer. put(short[] src)Relative bulk put method (optional operation).ShortBufferShortBuffer. put(short[] src, int offset, int length)Relative bulk put method (optional operation).ShortBufferShortBuffer. put(ShortBuffer src)Relative bulk put method (optional operation).ShortBufferShortBuffer. reset()Resets this buffer's position to the previously-marked position.ShortBufferShortBuffer. rewind()Rewinds this buffer.abstract ShortBufferShortBuffer. slice()Creates a new short buffer whose content is a shared subsequence of this buffer's content.abstract ShortBufferShortBuffer. slice(int index, int length)Creates a new short buffer whose content is a shared subsequence of this buffer's content.static ShortBufferShortBuffer. wrap(short[] array)Wraps a short array into a buffer.static ShortBufferShortBuffer. wrap(short[] array, int offset, int length)Wraps a short array into a buffer.Methods in java.nio with parameters of type ShortBuffer Modifier and Type Method Description intShortBuffer. compareTo(ShortBuffer that)Compares this buffer to another.intShortBuffer. mismatch(ShortBuffer that)Finds and returns the relative index of the first mismatch between this buffer and a given buffer.ShortBufferShortBuffer. put(ShortBuffer src)Relative bulk put method (optional operation).