public class LZWCompressor extends Object
Constructor and Description |
---|
LZWCompressor(OutputStream outputStream, int codeSize, boolean TIFF) |
Modifier and Type | Method and Description |
---|---|
void |
compress(byte[] buf, int offset, int length) |
void |
flush()
Indicate to compressor that no more data to go so write out any remaining buffered data.
|
public LZWCompressor(OutputStream outputStream, int codeSize, boolean TIFF) throws IOException
outputStream
- destination for compressed data
codeSize
- the initial code size for the LZW compressor
TIFF
- flag indicating that TIFF lzw fudge needs to be applied
IOException
- if underlying output stream error
public void compress(byte[] buf, int offset, int length) throws IOException
buf
- The data to be compressed to output stream
offset
- The offset at which the data starts
length
- The length of the data being compressed
IOException
- if underlying output stream error
public void flush() throws IOException
IOException
- if underlying output stream error
Copyright © 1998–2023 iText Group NV. All rights reserved.