Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
ByteBuffer.allocate(int capacity)
Allocates a new byte buffer.
|
abstract ByteBuffer |
ByteBuffer.asReadOnlyBuffer()
Creates a new, read-only byte buffer that shares this buffer's
content.
|
abstract ByteBuffer |
ByteBuffer.compact()
Compacts this buffer (optional operation).
|
abstract ByteBuffer |
ByteBuffer.duplicate()
Creates a new byte buffer that shares this buffer's content.
|
ByteBuffer |
ByteBuffer.get(byte[] dst)
Relative bulk get method.
|
ByteBuffer |
ByteBuffer.get(byte[] dst,
int offset,
int length)
Relative bulk get method.
|
ByteBuffer |
ByteBuffer.order(ByteOrder bo)
Modifies this buffer's byte order.
|
abstract ByteBuffer |
ByteBuffer.put(byte b)
Relative put method (optional operation).
|
ByteBuffer |
ByteBuffer.put(byte[] src)
Relative bulk put method (optional operation).
|
ByteBuffer |
ByteBuffer.put(byte[] src,
int offset,
int length)
Relative bulk put method (optional operation).
|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Relative bulk put method (optional operation).
|
abstract ByteBuffer |
ByteBuffer.put(int index,
byte b)
Absolute put method (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putChar(char value)
Relative put method for writing a char
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putChar(int index,
char value)
Absolute put method for writing a char
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putDouble(double value)
Relative put method for writing a double
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putDouble(int index,
double value)
Absolute put method for writing a double
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putFloat(float value)
Relative put method for writing a float
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putFloat(int index,
float value)
Absolute put method for writing a float
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putInt(int value)
Relative put method for writing an int
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putInt(int index,
int value)
Absolute put method for writing an int
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putLong(int index,
long value)
Absolute put method for writing a long
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putLong(long value)
Relative put method for writing a long
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putShort(int index,
short value)
Absolute put method for writing a short
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putShort(short value)
Relative put method for writing a short
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.slice()
Creates a new byte buffer whose content is a shared subsequence of
this buffer's content.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array)
Wraps a byte array into a buffer.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array,
int offset,
int length)
Wraps a byte array into a buffer.
|
Modifier and Type | Method and Description |
---|---|
int |
ByteBuffer.compareTo(ByteBuffer that)
Compares this buffer to another.
|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Relative bulk put method (optional operation).
|