public class ByteBufferBuilder
Helper class for building ByteBuffer with the specific content
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteBufferBuilder.Companion
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static ByteBufferBuilder.Companion |
Companion
Deprecated.
|
| Constructor and Description |
|---|
ByteBufferBuilder(java.nio.ByteOrder order)
Deprecated.
Helper class for building ByteBuffer with the specific content
|
ByteBufferBuilder()
Deprecated.
Helper class for building ByteBuffer with the specific content
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
build()
Deprecated.
Builds a ByteBuffer from the accumulated data
|
void |
put(java.nio.ByteBuffer other)
Deprecated.
Puts bytes from other into this builder
|
void |
put(byte p)
Deprecated.
Puts byte value into this builder
|
void |
putInt(int integer)
Deprecated.
Puts integer value into this builder
|
void |
putShort(short p)
Deprecated.
Puts short value into this builder
|
void |
putString(java.lang.String string,
java.nio.charset.Charset charset)
Deprecated.
Puts String value into this builder using specified charset
|
public static ByteBufferBuilder.Companion Companion
public ByteBufferBuilder(java.nio.ByteOrder order)
Helper class for building ByteBuffer with the specific content
public ByteBufferBuilder()
Helper class for building ByteBuffer with the specific content
public void put(java.nio.ByteBuffer other)
Puts bytes from other into this builder
public void put(byte p)
Puts byte value into this builder
public void putShort(short p)
Puts short value into this builder
public void putInt(int integer)
Puts integer value into this builder
public void putString(java.lang.String string,
java.nio.charset.Charset charset)
Puts String value into this builder using specified charset
public java.nio.ByteBuffer build()
Builds a ByteBuffer from the accumulated data