final class FlateFilter extends Filter
Modifier and Type | Field and Description |
---|---|
private static int |
BUFFER_SIZE |
private static org.apache.commons.logging.Log |
LOG |
SYSPROP_DEFLATELEVEL
Constructor and Description |
---|
FlateFilter() |
Modifier and Type | Method and Description |
---|---|
DecodeResult |
decode(java.io.InputStream encoded,
java.io.OutputStream decoded,
COSDictionary parameters,
int index)
Decodes data, producing the original non-encoded data.
|
private void |
decompress(java.io.InputStream in,
java.io.OutputStream out) |
protected void |
encode(java.io.InputStream input,
java.io.OutputStream encoded,
COSDictionary parameters) |
decode, encode, findImageReader, getCompressionLevel, getDecodeParams
private static final org.apache.commons.logging.Log LOG
private static final int BUFFER_SIZE
public DecodeResult decode(java.io.InputStream encoded, java.io.OutputStream decoded, COSDictionary parameters, int index) throws java.io.IOException
Filter
decode
in class Filter
encoded
- the encoded byte streamdecoded
- the stream where decoded data will be writtenparameters
- the parameters used for decodingindex
- the index to the filter being decodedjava.io.IOException
- if the stream cannot be decodedprivate void decompress(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException, java.util.zip.DataFormatException
java.io.IOException
java.util.zip.DataFormatException
protected void encode(java.io.InputStream input, java.io.OutputStream encoded, COSDictionary parameters) throws java.io.IOException