java.io.Closeable, java.lang.AutoCloseableArrayByteChunkProvider, BufferByteChunkProvider, EmptyByteChunkProvider, FileByteChunkProvider, InputStreamByteChunkProviderpublic abstract class ByteChunkProvider
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field | Description |
|---|---|---|
protected static int |
CHUNK_SIZE |
|
protected int |
chunkSize |
|
protected long |
offset |
| Constructor | Description |
|---|---|
ByteChunkProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract int |
bytesLeft() |
|
void |
close() |
|
protected abstract int |
getChunk(byte[] chunk) |
|
long |
getOffset() |
|
abstract boolean |
isAvailable() |
|
void |
writeChunk(Buffer<?> buffer) |
|
void |
writeChunk(java.io.OutputStream os) |
|
void |
writeChunks(Buffer<?> buffer,
int nrChunks) |
protected static final int CHUNK_SIZE
protected long offset
protected int chunkSize
public abstract boolean isAvailable()
public void writeChunk(java.io.OutputStream os)
public void writeChunks(Buffer<?> buffer, int nrChunks)
public void writeChunk(Buffer<?> buffer)
public long getOffset()
protected abstract int getChunk(byte[] chunk)
throws java.io.IOException
java.io.IOExceptionpublic abstract int bytesLeft()
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException