ByteBuffer.getShort

Absolute <i>get</i> method for reading a short value.

<p> Reads two bytes at the given index, composing them into a short value according to the current byte order. </p>

@param index The index from which the bytes will be read

@return The short value at the given index

@throws IndexOutOfBoundsException If <tt>index</tt> is negative or not smaller than the buffer's limit, minus one

  1. short getShort()
  2. short getShort(int index)
    class ByteBuffer
    abstract
    short
    getShort
    (
    int index
    )

Meta