public class ChunkedFile extends Object implements FileChunkSource
| Constructor and Description |
|---|
ChunkedFile(Path path) |
ChunkedFile(Path path,
int chunkSize,
int chunkOverlap) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChunkBufferSize() |
int |
getChunkOverlap() |
FileChunk[] |
getChunks() |
int |
getChunkSize() |
ByteArrayHolderFactory |
getFactory() |
org.apache.commons.pool2.impl.SoftReferenceObjectPool<ByteArrayHolder> |
getPool() |
void |
init()
Check if the file is still valid.
|
static void |
main(String[] args) |
FileChunk |
next() |
protected void |
schedule(int chunkNum) |
void |
setChunkBufferSize(int chunkBufferSize) |
public ChunkedFile(Path path)
public ChunkedFile(Path path, int chunkSize, int chunkOverlap)
public static void main(String[] args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void init()
throws IOException
IOExceptionpublic int getChunkBufferSize()
public void setChunkBufferSize(int chunkBufferSize)
public int getChunkSize()
public int getChunkOverlap()
public ByteArrayHolderFactory getFactory()
public FileChunk[] getChunks()
public org.apache.commons.pool2.impl.SoftReferenceObjectPool<ByteArrayHolder> getPool()
public FileChunk next()
next in interface FileChunkSourceprotected void schedule(int chunkNum)
Copyright © 2017–2018. All rights reserved.