Class LZWCompressor
java.lang.Object
com.itextpdf.io.codec.LZWCompressor
Modified from original LZWCompressor to change interface to passing a
buffer of data to be compressed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LZWCompressor
- Parameters:
outputStream- destination for compressed datacodeSize- the initial code size for the LZW compressorTIFF- flag indicating that TIFF lzw fudge needs to be applied- Throws:
IOException- if underlying output stream error
-
-
Method Details
-
compress
- Parameters:
buf- The data to be compressed to output streamoffset- The offset at which the data startslength- The length of the data being compressed- Throws:
IOException- if underlying output stream error
-
flush
Indicate to compressor that no more data to go so write out any remaining buffered data.- Throws:
IOException- if underlying output stream error
-