public class HDGFLZW extends LZWDecompresser
DICT_MASK, DICT_SIZE| Constructor and Description |
|---|
HDGFLZW() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
adjustDictionaryOffset(int pntr)
We have a slight shift by 18 bytes
|
byte[] |
compress(InputStream src)
Compress the given input stream, returning the array of bytes
of the compressed input
|
void |
compress(InputStream src,
OutputStream res)
Performs the Visio compatible streaming LZW compression.
|
protected int |
populateDictionary(byte[] dict)
We want an empty dictionary, so do nothing
|
decompress, decompress, getMaxRecordLength, setMaxRecordLengthpublic byte[] compress(InputStream src) throws IOException
src - the compression source byteIOException - when the InputStream can't be readprotected int adjustDictionaryOffset(int pntr)
adjustDictionaryOffset in class LZWDecompresserprotected int populateDictionary(byte[] dict)
populateDictionary in class LZWDecompresserpublic void compress(InputStream src, OutputStream res) throws IOException
src - the input bytes for the compressionres - the OutputStream which receives the compressed bytesIOException - when the InputStream can't be read
or the OutputStream can't be written to