ByteBuffer.getShort

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

<p> Reads the next two bytes at this buffer's current position, composing them into a short value according to the current byte order, and then increments the position by two. </p>

@return The short value at the buffer's current position

@throws BufferUnderflowException If there are fewer than two bytes remaining in this buffer

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

Meta