|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.util.LazilyConcatenatedByteArray
public class LazilyConcatenatedByteArray
Utility for delaying the concatenation of multiple byte arrays. Doing this up-front causes significantly more copying, which for a large number of byte arrays can cost a large amount of time.
Constructor Summary | |
---|---|
LazilyConcatenatedByteArray()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazilyConcatenatedByteArray()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |