public class ChunkEncoder extends Object
Constructor and Description |
---|
ChunkEncoder(int totalLength) |
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)
totalLength
- Total encoded length; used for calculating size
of hash table to usepublic void close()
encodeChunk(byte[], int, int)
will failpublic LZFChunk encodeChunk(byte[] data, int offset, int len)
public void encodeAndWriteChunk(byte[] data, int offset, int len, OutputStream out) throws IOException
IOException
Copyright © 2013. All Rights Reserved.