ByteBuffer.getInt

Relative <i>get</i> method for reading an int value.

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

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

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

  1. int getInt()
    class ByteBuffer
    abstract
    int
    getInt
    ()
  2. int getInt(int index)

Meta