public class ByteAccumulator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<byte[]> |
chunks |
private int |
length |
private int |
maxSize |
Constructor and Description |
---|
ByteAccumulator(int maxOverallBufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
copyChunk(byte[] buf,
int offset,
int length) |
int |
getLength() |
void |
transferTo(java.nio.ByteBuffer buffer) |