| Modifier and Type | Field and Description |
|---|---|
static String |
SYSPROP_DEFLATELEVEL
Compression Level System Property.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Filter() |
| Modifier and Type | Method and Description |
|---|---|
abstract DecodeResult |
decode(InputStream encoded,
OutputStream decoded,
COSDictionary parameters,
int index)
Decodes data, producing the original non-encoded data.
|
abstract void |
encode(InputStream input,
OutputStream encoded,
COSDictionary parameters)
Encodes data.
|
protected static ImageReader |
findImageReader(String formatName,
String errorCause)
Finds a suitable image reader for a format.
|
static int |
getCompressionLevel() |
protected COSDictionary |
getDecodeParams(COSDictionary dictionary,
int index) |
public static final String SYSPROP_DEFLATELEVEL
Deflater.DEFAULT_COMPRESSION. To set
maximum compression, use System.setProperty(Filter.SYSPROP_DEFLATELEVEL, "9");public abstract DecodeResult decode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) throws IOException
encoded - 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 abstract void encode(InputStream input, OutputStream encoded, COSDictionary parameters) throws IOException
input - the byte stream to encodeencoded - the stream where encoded data will be writtenparameters - the parameters used for encodingIOException - if the stream cannot be encodedprotected COSDictionary getDecodeParams(COSDictionary dictionary, int index)
protected static ImageReader findImageReader(String formatName, String errorCause) throws MissingImageReaderException
formatName - The format to search for.errorCause - The probably cause if something goes wrong.MissingImageReaderException - if no image reader is found.public static int getCompressionLevel()
Copyright © 2019 sejda. All rights reserved.