|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.stax2.ri.Stax2Util.ByteAggregator
public static final class Stax2Util.ByteAggregator
Helper class for efficiently reading and aggregating variable length byte content.
| Constructor Summary | |
|---|---|
Stax2Util.ByteAggregator()
|
|
| Method Summary | |
|---|---|
byte[] |
addFullBlock(byte[] block)
Method used to add bufferful of data to the aggregator, and get another buffer to read more data into. |
byte[] |
aggregateAll(byte[] lastBlock,
int lastLen)
Method called when results are finalized and we can get the full aggregated result buffer to return to the caller |
byte[] |
startAggregation()
Method called to initialize aggregation process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stax2Util.ByteAggregator()
| Method Detail |
|---|
public byte[] startAggregation()
public byte[] addFullBlock(byte[] block)
public byte[] aggregateAll(byte[] lastBlock,
int lastLen)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||