| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected ByteAccumulator. | |
| protected ByteAccumulator. | |
| protected final ByteAccumulator | |
| protected int | _parentStart
Pointer to start of contents provided by parent, preceding room for prefix (that is, same as or less than `_prefixOffset`) |
| protected final byte[] | _prefixBuffer
Caller-provided buffer in which optional type prefix, and mandatory length indicator may be added. |
| protected final int | _prefixOffset
Offset within |
| protected int | _segmentBytes
Total number of bytes contained within buffers, to be used for length prefix. |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | ByteAccumulator(ByteAccumulator p, int typedTag, byte[] prefixBuffer, int prefixOffset, int parentStart)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public ByteAccumulator | |
| public ByteAccumulator |
| _firstSegment | back to summary |
|---|---|
| protected ByteAccumulator. | |
| _lastSegment | back to summary |
|---|---|
| protected ByteAccumulator. | |
| _parent | back to summary |
|---|---|
| protected final ByteAccumulator _parent | |
| _parentStart | back to summary |
|---|---|
| protected int _parentStart Pointer to start of contents provided by parent, preceding room for prefix (that is, same as or less than `_prefixOffset`)
| |
| _prefixBuffer | back to summary |
|---|---|
| protected final byte[] _prefixBuffer Caller-provided buffer in which optional type prefix, and mandatory length indicator may be added. Caller ensures there is enough room for both, i.e. up to 10 bytes (if both) or 5 bytes (if just length) | |
| _prefixOffset | back to summary |
|---|---|
| protected final int _prefixOffset Offset within | |
| _segmentBytes | back to summary |
|---|---|
| protected int _segmentBytes Total number of bytes contained within buffers, to be used for length prefix. | |
| _typedTag | back to summary |
|---|---|
| protected final int _typedTag | |
| ByteAccumulator | back to summary |
|---|---|
| public ByteAccumulator(ByteAccumulator p, int typedTag, byte[] prefixBuffer, int prefixOffset, int parentStart) | |
| append | back to summary |
|---|---|
| public void append(byte[] buf, int offset, int len) | |
| appendAll | back to summary |
|---|---|
| private void appendAll(ByteAccumulator. | |
| finish | back to summary |
|---|---|
| public ByteAccumulator finish(OutputStream out, byte[] input, int offset, int len) throws IOException | |
| finish | back to summary |
|---|---|
| public ByteAccumulator finish(OutputStream out, byte[] input) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private ByteAccumulator. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteAccumulator. | |
| public ByteAccumulator. | |
| public void |
| _buffer | back to summary |
|---|---|
| private final byte[] _buffer | |
| _length | back to summary |
|---|---|
| private final int _length | |
| _next | back to summary |
|---|---|
| private ByteAccumulator. | |
| _start | back to summary |
|---|---|
| private final int _start | |
| Segment | back to summary |
|---|---|
| public Segment(byte[] buffer, int start, int length) | |
| linkNext | back to summary |
|---|---|
| public ByteAccumulator. | |
| next | back to summary |
|---|---|
| public ByteAccumulator. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream out) throws IOException | |