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
(我们稍微移动了 18 个字节)
|
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.
(执行 Visio 兼容的流式 LZW 压缩。)
|
protected int |
populateDictionary(byte[] dict)
We want an empty dictionary, so do nothing
(我们想要一个空字典,所以什么都不做)
|
decompress, decompress
public byte[] compress(java.io.InputStream src) throws java.io.IOException
src
- the compression source byte
(src - 压缩源字节)
java.io.IOException
- when the InputStream can't be read
(java.io.IOException - 当 InputStream 无法读取时)
protected int adjustDictionaryOffset(int pntr)
adjustDictionaryOffset
in class
LZWDecompresser
(类 LZWDecompresser 中的 adjustDictionaryOffset)
protected int populateDictionary(byte[] dict)
populateDictionary
in class
LZWDecompresser
(类 LZWDecompresser 中的 populateDictionary)
public void compress(java.io.InputStream src, java.io.OutputStream res) throws java.io.IOException
src
- the input bytes for the compression
(src - 压缩的输入字节)
res
- the OutputStream which receives the compressed bytes
(res - 接收压缩字节的 OutputStream)
java.io.IOException
- when the InputStream can't be read or the OutputStream can't be written to
(java.io.IOException - 当 InputStream 无法读取或 OutputStream 无法写入时)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.