| java.lang.Object java.nio.XXX
Method Summary | |
abstract public $Type$Buffer | as$Type$Buffer() Creates a view of this byte buffer as $a$ $type$ buffer.
The content of the new buffer will start at this buffer's current
position. | abstract public $type$ | get$Type$() Relative get method for reading $a$ $type$ value.
Reads the next $nbytes$ bytes at this buffer's current position,
composing them into $a$ $type$ value according to the current byte order,
and then increments the position by $nbytes$. | abstract public $type$ | get$Type$(int index) Absolute get method for reading $a$ $type$ value.
Reads $nbytes$ bytes at the given index, composing them into a
$type$ value according to the current byte order. | abstract public ByteBuffer | put$Type$($type$ value) Relative put method for writing $a$ $type$
value (optional operation).
Writes $nbytes$ bytes containing the given $type$ value, in the
current byte order, into this buffer at the current position, and then
increments the position by $nbytes$. | abstract public ByteBuffer | put$Type$(int index, $type$ value) Absolute put method for writing $a$ $type$
value (optional operation).
Writes $nbytes$ bytes containing the given $type$ value, in the
current byte order, into this buffer at the given index. |
as$Type$Buffer | abstract public $Type$Buffer as$Type$Buffer()(Code) | | Creates a view of this byte buffer as $a$ $type$ buffer.
The content of the new buffer will start at this buffer's current
position. Changes to this buffer's content will be visible in the new
buffer, and vice versa; the two buffers' position, limit, and mark
values will be independent.
The new buffer's position will be zero, its capacity and its limit
will be the number of bytes remaining in this buffer divided by
$nbytes$, and its mark will be undefined. The new buffer will be direct
if, and only if, this buffer is direct, and it will be read-only if, and
only if, this buffer is read-only.
A new $type$ buffer |
get$Type$ | abstract public $type$ get$Type$()(Code) | | Relative get method for reading $a$ $type$ value.
Reads the next $nbytes$ bytes at this buffer's current position,
composing them into $a$ $type$ value according to the current byte order,
and then increments the position by $nbytes$.
The $type$ value at the buffer's current position throws: BufferUnderflowException - If there are fewer than $nbytes$ bytesremaining in this buffer |
get$Type$ | abstract public $type$ get$Type$(int index)(Code) | | Absolute get method for reading $a$ $type$ value.
Reads $nbytes$ bytes at the given index, composing them into a
$type$ value according to the current byte order.
Parameters: index - The index from which the bytes will be read The $type$ value at the given index throws: IndexOutOfBoundsException - If index is negativeor not smaller than the buffer's limit,minus $nbytesButOne$ |
put$Type$ | abstract public ByteBuffer put$Type$($type$ value)(Code) | | Relative put method for writing $a$ $type$
value (optional operation).
Writes $nbytes$ bytes containing the given $type$ value, in the
current byte order, into this buffer at the current position, and then
increments the position by $nbytes$.
Parameters: value - The $type$ value to be written This buffer throws: BufferOverflowException - If there are fewer than $nbytes$ bytesremaining in this buffer throws: ReadOnlyBufferException - If this buffer is read-only |
put$Type$ | abstract public ByteBuffer put$Type$(int index, $type$ value)(Code) | | Absolute put method for writing $a$ $type$
value (optional operation).
Writes $nbytes$ bytes containing the given $type$ value, in the
current byte order, into this buffer at the given index.
Parameters: index - The index at which the bytes will be written Parameters: value - The $type$ value to be written This buffer throws: IndexOutOfBoundsException - If index is negativeor not smaller than the buffer's limit,minus $nbytesButOne$ throws: ReadOnlyBufferException - If this buffer is read-only |
|
|