| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public byte[] | Returns: the byte array. Returnsnull if no data has been placed into it.Gets the concatenated contents as a single byte array. |
| arrays | back to summary |
|---|---|
| private final List<byte[]> arrays | |
| LazilyConcatenatedByteArray | back to summary |
|---|---|
| public LazilyConcatenatedByteArray() | |
| clear | back to summary |
|---|---|
| public void clear() Clears the array (sets the concatenated length back to zero. | |
| concatenate | back to summary |
|---|---|
| public void concatenate(byte[] array) Concatenates an array onto the end of our array. This is a relatively fast operation.
| |
| concatenate | back to summary |
|---|---|
| public void concatenate(LazilyConcatenatedByteArray other) | |
| toArray | back to summary |
|---|---|
| public byte[] toArray() Gets the concatenated contents as a single byte array. This is a slower operation, but the concatenated array is stored off as a single array again so that subsequent calls will not perform additional copying.
| |