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, writeChunks
public FileByteChunkProvider(java.io.File file) throws java.io.IOException
java.io.IOException
public FileByteChunkProvider(java.io.File file, long offset) throws java.io.IOException
java.io.IOException
protected int getChunk(byte[] chunk) throws java.io.IOException
getChunk
in class ByteChunkProvider
java.io.IOException
public int bytesLeft()
bytesLeft
in class ByteChunkProvider
public boolean isAvailable()
isAvailable
in class ByteChunkProvider
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class ByteChunkProvider
java.io.IOException