public class InputStreamByteChunkProvider extends ByteChunkProvider
CHUNK_SIZE, chunkSize, offset| Constructor and Description |
|---|
InputStreamByteChunkProvider(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesLeft() |
void |
close() |
protected int |
getChunk(byte[] chunk) |
boolean |
isAvailable() |
getOffset, writeChunk, writeChunk, writeChunkspublic InputStreamByteChunkProvider(java.io.InputStream is)
protected int getChunk(byte[] chunk)
throws java.io.IOException
getChunk in class ByteChunkProviderjava.io.IOExceptionpublic int bytesLeft()
bytesLeft in class ByteChunkProviderpublic boolean isAvailable()
isAvailable in class ByteChunkProviderpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ByteChunkProviderjava.io.IOException