Returns the byte array that backs this buffer <i>(optional operation)</i>.
Returns the offset within this buffer's backing array of the first element of the buffer <i>(optional operation)</i>.
Creates a new, read-only byte buffer that shares this buffer's content.
Compacts this buffer <i>(optional operation)</i>.
Creates a new byte buffer that shares this buffer's content.
Relative <i>get</i> method. Reads the byte at this buffer's current position, and then increments the position.
Absolute <i>get</i> method. Reads the byte at the given index.
Relative bulk <i>get</i> method.
Relative bulk <i>get</i> method.
Relative <i>get</i> method for reading an int value.
Absolute <i>get</i> method for reading an int value.
Relative <i>get</i> method for reading an int value.
Absolute <i>get</i> method for reading an int value.
Relative <i>get</i> method for reading a long value.
Absolute <i>get</i> method for reading a long value.
Relative <i>get</i> method for reading a short value.
Absolute <i>get</i> method for reading a short value.
Tells whether or not this buffer is backed by an accessible byte array.
Retrieves this buffer's byte order.
Modifies this buffer's byte order.
Relative <i>put</i> method <i>(optional operation)</i>.
Absolute <i>put</i> method <i>(optional operation)</i>.
Relative bulk <i>put</i> method <i>(optional operation)</i>.
Relative bulk <i>put</i> method <i>(optional operation)</i>.
Relative bulk <i>put</i> method <i>(optional operation)</i>.
Relative <i>put</i> method for writing a short value <i>(optional operation)</i>.
Absolute <i>put</i> method for writing a short value <i>(optional operation)</i>.
Relative <i>put</i> method for writing an int value <i>(optional operation)</i>.
Absolute <i>put</i> method for writing an int value <i>(optional operation)</i>.
Relative <i>put</i> method for writing a long value <i>(optional operation)</i>.
Absolute <i>put</i> method for writing a long value <i>(optional operation)</i>.
Relative <i>put</i> method for writing a short value <i>(optional operation)</i>.
Absolute <i>put</i> method for writing a short value <i>(optional operation)</i>.
Creates a new byte buffer whose content is a shared subsequence of this buffer's content.
Returns a string summarizing the state of this buffer.
Allocates a new byte buffer.
Allocates a new direct byte buffer.
Wraps a byte array into a buffer.
Wraps a byte array into a buffer.
Returns this buffer's capacity.
Returns this buffer's position.
Sets this buffer's position. If the mark is defined and larger than the new position then it is discarded.
Returns this buffer's limit.
Sets this buffer's limit. If the position is larger than the new limit then it is set to the new limit. If the mark is defined and larger than the new limit then it is discarded.
Sets this buffer's mark at its position.
Resets this buffer's position to the previously-marked position.
Clears this buffer. The position is set to zero, the limit is set to the capacity, and the mark is discarded.
Flips this buffer. The limit is set to the current position and then the position is set to zero. If the mark is defined then it is discarded.
Rewinds this buffer. The position is set to zero and the mark is discarded.
Returns the number of elements between the current position and the limit.
Tells whether there are any elements between the current position and the limit.
Tells whether or not this buffer is read-only.
Tells whether or not this buffer is backed by an accessible array.
Returns the offset within this buffer's backing array of the first element of the buffer <i>(optional operation)</i>.
Tells whether or not this buffer is <a href="ByteBuffer.html#direct"><i>direct</i></a>.
Checks the current position against the limit, throwing a {@link BufferUnderflowException} if it is not smaller than the limit, and then increments the position.
Checks the current position against the limit, throwing a {@link BufferOverflowException} if it is not smaller than the limit, and then increments the position.
Checks the given index against the limit, throwing an {@link IndexOutOfBoundsException} if it is not smaller than the limit or is smaller than zero.