Retrieves this buffer's byte order.
Modifies this buffer's byte order.
Allocates a new direct byte buffer.
Allocates a new byte buffer.
Wraps a byte array into a buffer.
Wraps a byte array into a buffer.
Creates a new byte buffer whose content is a shared subsequence of this buffer's content.
Creates a new byte buffer that shares this buffer's content.
Creates a new, read-only 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.
Relative <i>put</i> method <i>(optional operation)</i>.
Absolute <i>get</i> method. Reads the byte at the given index.
Absolute <i>put</i> method <i>(optional operation)</i>.
Relative bulk <i>get</i> method.
Relative bulk <i>get</i> method.
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>get</i> method for reading a short value.
Relative <i>put</i> method for writing a short value <i>(optional operation)</i>.
Absolute <i>get</i> method for reading a short value.
Absolute <i>put</i> method for writing a short value <i>(optional operation)</i>.
Relative <i>get</i> method for reading an int value.
Relative <i>put</i> method for writing an int value <i>(optional operation)</i>.
Absolute <i>get</i> method for reading an int value.
Absolute <i>put</i> method for writing an int value <i>(optional operation)</i>.
Relative <i>get</i> method for reading a long value.
Relative <i>put</i> method for writing a long value <i>(optional operation)</i>.
Absolute <i>get</i> method for reading a long value.
Absolute <i>put</i> method for writing a long value <i>(optional operation)</i>.
Tells whether or not this buffer is backed by an accessible byte array.
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>.
Compacts this buffer <i>(optional operation)</i>.
Relative <i>get</i> method for reading an int value.
Absolute <i>get</i> method for reading an int value.
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>.
Returns a string summarizing the state of this buffer.
A direct byte buffer whose content is a memory-mapped region of a file.
<p> Mapped byte buffers are created via the {@link java.nio.channels.FileChannel#map FileChannel.map} method. This class extends the {@link ByteBuffer} class with operations that are specific to memory-mapped file regions.
<p> A mapped byte buffer and the file mapping that it represents remain valid until the buffer itself is garbage-collected.
<p> The content of a mapped byte buffer can change at any time, for example if the content of the corresponding region of the mapped file is changed by this program or another. Whether or not such changes occur, and when they occur, is operating-system dependent and therefore unspecified.
<a name="inaccess"></a><p> All or part of a mapped byte buffer may become inaccessible at any time, for example if the mapped file is truncated. An attempt to access an inaccessible region of a mapped byte buffer will not change the buffer's content and will cause an unspecified exception to be thrown either at the time of the access or at some later time. It is therefore strongly recommended that appropriate precautions be taken to avoid the manipulation of a mapped file by this program, or by a concurrently running program, except to read or write the file's content.
<p> Mapped byte buffers otherwise behave no differently than ordinary direct byte buffers. </p>