Uses of Class
java.nio.ShortBuffer

Packages that use ShortBuffer
Package
Description
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
    ShortBuffer.allocate(int capacity)
    Allocates a new short buffer.
    abstract ShortBuffer
    ShortBuffer.asReadOnlyBuffer()
    Creates a new, read-only short buffer that shares this buffer's content.
    abstract ShortBuffer
    ByteBuffer.asShortBuffer()
    Creates a view of this byte buffer as a short buffer.
    ShortBuffer.clear()
    Clears this buffer.
    abstract ShortBuffer
    ShortBuffer.compact()
    Compacts this buffer  (optional operation).
    abstract ShortBuffer
    ShortBuffer.duplicate()
    Creates a new short buffer that shares this buffer's content.
    ShortBuffer.flip()
    Flips this buffer.
    ShortBuffer.get(int index, short[] dst)
    Absolute bulk get method.
    ShortBuffer.get(int index, short[] dst, int offset, int length)
    Absolute bulk get method.
    ShortBuffer.get(short[] dst)
    Relative bulk get method.
    ShortBuffer.get(short[] dst, int offset, int length)
    Relative bulk get method.
    ShortBuffer.limit(int newLimit)
    Sets this buffer's limit.
    ShortBuffer.mark()
    Sets this buffer's mark at its position.
    ShortBuffer.position(int newPosition)
    Sets this buffer's position.
    abstract ShortBuffer
    ShortBuffer.put(int index, short s)
    Absolute put method  (optional operation).
    ShortBuffer.put(int index, short[] src)
    Absolute bulk put method  (optional operation).
    ShortBuffer.put(int index, short[] src, int offset, int length)
    Absolute bulk put method  (optional operation).
    ShortBuffer.put(int index, ShortBuffer src, int offset, int length)
    Absolute bulk put method  (optional operation).
    abstract ShortBuffer
    ShortBuffer.put(short s)
    Relative put method  (optional operation).
    ShortBuffer.put(short[] src)
    Relative bulk put method  (optional operation).
    ShortBuffer.put(short[] src, int offset, int length)
    Relative bulk put method  (optional operation).
    ShortBuffer.put(ShortBuffer src)
    Relative bulk put method  (optional operation).
    ShortBuffer.reset()
    Resets this buffer's position to the previously-marked position.
    ShortBuffer.rewind()
    Rewinds this buffer.
    abstract ShortBuffer
    ShortBuffer.slice()
    Creates a new short buffer whose content is a shared subsequence of this buffer's content.
    abstract ShortBuffer
    ShortBuffer.slice(int index, int length)
    Creates a new short buffer whose content is a shared subsequence of this buffer's content.
    ShortBuffer.wrap(short[] array)
    Wraps a short array into a buffer.
    ShortBuffer.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
    int
    ShortBuffer.compareTo(ShortBuffer that)
    Compares this buffer to another.
    int
    ShortBuffer.mismatch(ShortBuffer that)
    Finds and returns the relative index of the first mismatch between this buffer and a given buffer.
    ShortBuffer.put(int index, ShortBuffer src, int offset, int length)
    Absolute bulk put method  (optional operation).
    ShortBuffer.put(ShortBuffer src)
    Relative bulk put method  (optional operation).