public class ChunkEncoder extends Object
| Constructor and Description |
|---|
ChunkEncoder(int totalLength,
BufferRecycler recycler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method to close once encoder is no longer in use.
|
void |
encodeAndWriteChunk(byte[] data,
int offset,
int len,
OutputStream out)
Method for encoding individual chunk, writing it to given output stream.
|
LZFChunk |
encodeChunk(byte[] data,
int offset,
int len)
Method for compressing (or not) individual chunks
|
public ChunkEncoder(int totalLength,
BufferRecycler recycler)
totalLength - Total encoded length; used for calculating size
of hash table to usepublic void close()
#_encodeChunk will failpublic LZFChunk encodeChunk(byte[] data, int offset, int len)
public void encodeAndWriteChunk(byte[] data,
int offset,
int len,
OutputStream out)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.