byte[]s where the final size of the data is not known beforehand. The API is
similar to ByteBuffer but the data is not actually written to a byte[] until toBuffer or
toArray is called.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private abstract static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| private ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public ByteArrayBuilder | |
| public byte[] | |
| public ByteBuffer | |
| public ByteBuffer |
| data | back to summary |
|---|---|
| private final List<ByteArrayBuilder. | |
| pos | back to summary |
|---|---|
| private int pos | |
| ByteArrayBuilder | back to summary |
|---|---|
| public ByteArrayBuilder() | |
| position | back to summary |
|---|---|
| public int position() | |
| put | back to summary |
|---|---|
| public ByteArrayBuilder put(byte val) | |
| put | back to summary |
|---|---|
| public ByteArrayBuilder put(byte[] val) | |
| put | back to summary |
|---|---|
| public ByteArrayBuilder put(ByteBuffer val) | |
| put | back to summary |
|---|---|
| private ByteArrayBuilder put(ByteArrayBuilder. | |
| putInt | back to summary |
|---|---|
| public ByteArrayBuilder putInt(int val) | |
| putInt | back to summary |
|---|---|
| public ByteArrayBuilder putInt(int atPos, int val) | |
| putShort | back to summary |
|---|---|
| public ByteArrayBuilder putShort(short val) | |
| putShort | back to summary |
|---|---|
| public ByteArrayBuilder putShort(int atPos, short val) | |
| reserve | back to summary |
|---|---|
| public ByteArrayBuilder reserve(int bytes) | |
| reserveInt | back to summary |
|---|---|
| public ByteArrayBuilder reserveInt() | |
| reserveShort | back to summary |
|---|---|
| public ByteArrayBuilder reserveShort() | |
| toArray | back to summary |
|---|---|
| public byte[] toArray() | |
| toBuffer | back to summary |
|---|---|
| public ByteBuffer toBuffer() | |
| toBuffer | back to summary |
|---|---|
| public ByteBuffer toBuffer(ByteBuffer buf) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | write(ByteBuffer buf)
Implements abstract io.
|
| val | back to summary |
|---|---|
| private final ByteBuffer val | |
| BufData | back to summary |
|---|---|
| private BufData(int pos, ByteBuffer val) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract io.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buf) Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | write(ByteBuffer buf)
Implements abstract io.
|
| val | back to summary |
|---|---|
| private final byte val | |
| ByteData | back to summary |
|---|---|
| private ByteData(int pos, byte val) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract io.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buf) Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | write(ByteBuffer buf)
Implements abstract io.
|
| val | back to summary |
|---|---|
| private final byte[] val | |
| BytesData | back to summary |
|---|---|
| private BytesData(int pos, byte[] val) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract io.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buf) Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public abstract int | |
| public abstract void |
| pos | back to summary |
|---|---|
| private final int pos | |
| Data | back to summary |
|---|---|
| protected Data(int pos) | |
| getEndPos | back to summary |
|---|---|
| public int getEndPos() | |
| getPos | back to summary |
|---|---|
| public int getPos() | |
| size | back to summary |
|---|---|
| public abstract int size() | |
| write | back to summary |
|---|---|
| public abstract void write(ByteBuffer buf) | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | write(ByteBuffer buf)
Implements abstract io.
|
| val | back to summary |
|---|---|
| private final int val | |
| IntData | back to summary |
|---|---|
| private IntData(int pos, int val) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract io.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buf) Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final short |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | write(ByteBuffer buf)
Implements abstract io.
|
| val | back to summary |
|---|---|
| private final short val | |
| ShortData | back to summary |
|---|---|
| private ShortData(int pos, short val) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract io.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buf) Implements abstract io.
| |