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.
|
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 © 2005-2010 Potix Corporation. All Rights Reserved.