public class LazilyConcatenatedByteArray
extends java.lang.Object
| Constructor | Description |
|---|---|
LazilyConcatenatedByteArray() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears the array (sets the concatenated length back to zero.
|
void |
concatenate(byte[] array) |
Concatenates an array onto the end of our array.
|
byte[] |
toArray() |
Gets the concatenated contents as a single byte array.
|
public void clear()
public void concatenate(byte[] array)
array - the array to concatenate.java.lang.IllegalArgumentException - if array is null.public byte[] toArray()
null if no data has been placed into it.Copyright 2018 The Apache Software Foundation or its licensors, as applicable.