public class LazilyConcatenatedByteArray extends Object
| Constructor and Description |
|---|
LazilyConcatenatedByteArray() |
| Modifier and Type | Method and 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.IllegalArgumentException - if array is null.public byte[] toArray()
null if no data has been placed into it.Copyright © 2020. All rights reserved.