org.pdfbox.filter
Class LZWFilter
java.lang.Object
org.pdfbox.filter.LZWFilter
- Filter
public class LZWFilter
extends java.lang.Object
This is the used for the LZWDecode filter.
static long | CLEAR_TABLE - The LZW clear table code.
|
static long | EOD - The LZW end of data code.
|
void | decode(InputStream compressedData, OutputStream result, COSDictionary options) - This will decode some compressed data.
|
void | encode(InputStream rawData, OutputStream result, COSDictionary options) - This will encode some data.
|
CLEAR_TABLE
public static final long CLEAR_TABLE
The LZW clear table code.
EOD
public static final long EOD
The LZW end of data code.
decode
public void decode(InputStream compressedData,
OutputStream result,
COSDictionary options)
throws IOException
This will decode some compressed data.
- decode in interface Filter
compressedData
- The compressed byte stream.result
- The place to write the uncompressed byte stream.options
- The options to use to encode the data.
encode
public void encode(InputStream rawData,
OutputStream result,
COSDictionary options)
throws IOException
This will encode some data.
- encode in interface Filter
rawData
- The raw data to encode.result
- The place to write to encoded results to.options
- The options to use to encode the data.