public class ChunkyFile
extends java.lang.Object
Constructor and Description |
---|
ChunkyFile(java.io.File source)
Creates a chunked representation of the supplied file.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getChunk(int index)
Returns a chunk by it's index.
|
int |
getChunkCount()
Returns the number of available chunks.
|
public ChunkyFile(java.io.File source) throws java.io.IOException
source
- The file that shall be loaded.java.io.IOException
- Reading the file failed for some reason.public int getChunkCount()
public byte[] getChunk(int index)
index
- The index of the chunk.