Modifier and Type | Method and Description |
---|---|
static Charset |
Charset.getUTF8() |
Modifier and Type | Method and Description |
---|---|
String |
ByteBuffer.getPrefixedString(int fieldSize,
Charset cs)
Returns a length-prefixed string from the buffer at the current position.
|
String |
ByteBuffer.getString(Charset cs)
Returns a null-terminated string from the buffer at the current position.
|
ByteBuffer |
ByteBuffer.putPrefixedString(int fieldSize,
int v,
Charset cs)
Puts a string into the buffer at the specified index, using the character set to
encode the string as bytes.
|
ByteBuffer |
ByteBuffer.putString(String v,
Charset cs)
Puts a string into the buffer at the current position, using the character set to
encode the string as bytes.
|
Copyright © 2014. All Rights Reserved.