Package org.apache.pdfbox.filter
Class RunLengthDecodeFilter
java.lang.Object
org.apache.pdfbox.filter.Filter
org.apache.pdfbox.filter.RunLengthDecodeFilter
Decompresses data encoded using a byte-oriented run-length encoding algorithm,
reproducing the original text or binary data
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.logging.Logprivate static final intFields inherited from class org.apache.pdfbox.filter.Filter
SYSPROP_DEFLATELEVEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) Decodes data, producing the original non-encoded data.protected voidencode(InputStream input, OutputStream encoded, COSDictionary parameters) Methods inherited from class org.apache.pdfbox.filter.Filter
decode, encode, findImageReader, getCompressionLevel, getDecodeParams
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
RUN_LENGTH_EOD
private static final int RUN_LENGTH_EOD- See Also:
-
-
Constructor Details
-
RunLengthDecodeFilter
RunLengthDecodeFilter()
-
-
Method Details
-
decode
public DecodeResult decode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) throws IOException Description copied from class:FilterDecodes data, producing the original non-encoded data.- Specified by:
decodein classFilter- Parameters:
encoded- the encoded byte streamdecoded- the stream where decoded data will be writtenparameters- the parameters used for decodingindex- the index to the filter being decoded- Returns:
- repaired parameters dictionary, or the original parameters dictionary
- Throws:
IOException- if the stream cannot be decoded
-
encode
protected void encode(InputStream input, OutputStream encoded, COSDictionary parameters) throws IOException - Specified by:
encodein classFilter- Throws:
IOException
-