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(java.io.InputStream src)
Compress the given input stream, returning the array of bytes
of the compressed input
|
void |
compress(java.io.InputStream src,
java.io.OutputStream res)
Performs the Visio compatible streaming LZW compression.
|
protected int |
populateDictionary(byte[] dict)
We want an empty dictionary, so do nothing
|
decompress, decompresspublic byte[] compress(java.io.InputStream src)
throws java.io.IOException
src - the compression source bytejava.io.IOException - 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(java.io.InputStream src,
java.io.OutputStream res)
throws java.io.IOException
src - the input bytes for the compressionres - the OutputStream which receives the compressed bytesjava.io.IOException - when the InputStream can't be read
or the OutputStream can't be written toCopyright 2020 The Apache Software Foundation or its licensors, as applicable.