public class LazilyConcatenatedByteArray
extends java.lang.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. | 
| void | concatenate(LazilyConcatenatedByteArray other) | 
| 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 void concatenate(LazilyConcatenatedByteArray other)
public byte[] toArray()
null if no data has been placed into it.Copyright 2021 The Apache Software Foundation or its licensors, as applicable.