public class FileByteChunkProvider extends ByteChunkProvider
CHUNK_SIZE, chunkSize, offset| Constructor and Description |
|---|
FileByteChunkProvider(java.io.File file) |
FileByteChunkProvider(java.io.File file,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesLeft() |
void |
close() |
protected int |
getChunk(byte[] chunk) |
boolean |
isAvailable() |
getOffset, writeChunk, writeChunk, writeChunkspublic FileByteChunkProvider(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic FileByteChunkProvider(java.io.File file,
long offset)
throws java.io.IOException
java.io.IOExceptionprotected 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