public class LZWFilter extends Filter
| Modifier and Type | Field and Description |
|---|---|
static long |
CLEAR_TABLE
The LZW clear table code.
|
static long |
EOD
The LZW end of data code.
|
SYSPROP_DEFLATELEVEL| Constructor and Description |
|---|
LZWFilter() |
| Modifier and Type | Method and Description |
|---|---|
DecodeResult |
decode(InputStream encoded,
OutputStream decoded,
COSDictionary parameters,
int index)
Decodes data, producing the original non-encoded data.
|
void |
encode(InputStream rawData,
OutputStream encoded,
COSDictionary parameters)
Encodes data.
|
findImageReader, getCompressionLevel, getDecodeParamspublic static final long CLEAR_TABLE
public static final long EOD
public DecodeResult decode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) throws IOException
decode in class Filterencoded - the encoded byte streamdecoded - the stream where decoded data will be writtenparameters - the parameters used for decodingindex - the index to the filter being decodedIOException - if the stream cannot be decodedpublic void encode(InputStream rawData, OutputStream encoded, COSDictionary parameters) throws IOException
Filterencode in class FilterrawData - the byte stream to encodeencoded - the stream where encoded data will be writtenparameters - the parameters used for encodingIOException - if the stream cannot be encodedCopyright © 2019 sejda. All rights reserved.