public final class JPXFilter extends Filter
SYSPROP_DEFLATELEVEL
Constructor and Description |
---|
JPXFilter() |
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.
|
DecodeResult |
decode(java.io.InputStream encoded,
java.io.OutputStream decoded,
COSDictionary parameters,
int index,
DecodeOptions options)
Decodes data, with optional DecodeOptions.
|
protected void |
encode(java.io.InputStream input,
java.io.OutputStream encoded,
COSDictionary parameters) |
private java.awt.image.BufferedImage |
readJPX(java.io.InputStream input,
DecodeOptions options,
DecodeResult result) |
encode, findImageReader, getCompressionLevel, getDecodeParams
public DecodeResult decode(java.io.InputStream encoded, java.io.OutputStream decoded, COSDictionary parameters, int index, DecodeOptions options) throws java.io.IOException
honored
flag to test if they were applied.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 decodedoptions
- additional options for decodingjava.io.IOException
- if the stream cannot be decodedpublic 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 java.awt.image.BufferedImage readJPX(java.io.InputStream input, DecodeOptions options, DecodeResult result) throws java.io.IOException
java.io.IOException
protected void encode(java.io.InputStream input, java.io.OutputStream encoded, COSDictionary parameters) throws java.io.IOException