public class BufferByteChunkProvider extends ByteChunkProvider
CHUNK_SIZE, chunkSize, offset| Constructor and Description |
|---|
BufferByteChunkProvider(Buffer<?> buffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesLeft() |
protected int |
getChunk(byte[] chunk) |
boolean |
isAvailable() |
close, getOffset, writeChunk, writeChunk, writeChunkspublic BufferByteChunkProvider(Buffer<?> buffer)
public boolean isAvailable()
isAvailable in class ByteChunkProviderprotected int getChunk(byte[] chunk)
throws java.io.IOException
getChunk in class ByteChunkProviderjava.io.IOExceptionpublic int bytesLeft()
bytesLeft in class ByteChunkProvider