Package org.apache.pdfbox.filter
Class RunLengthDecodeFilter
- java.lang.Object
-
- org.apache.pdfbox.filter.Filter
-
- org.apache.pdfbox.filter.RunLengthDecodeFilter
-
final class RunLengthDecodeFilter extends Filter
Decompresses data encoded using a byte-oriented run-length encoding algorithm, reproducing the original text or binary data
-
-
Field Summary
Fields Modifier and Type Field Description private static intRUN_LENGTH_EOD-
Fields inherited from class org.apache.pdfbox.filter.Filter
SYSPROP_DEFLATELEVEL
-
-
Constructor Summary
Constructors Constructor Description RunLengthDecodeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecodeResultdecode(java.io.InputStream encoded, java.io.OutputStream decoded, COSDictionary parameters, int index)Decodes data, producing the original non-encoded data.protected voidencode(java.io.InputStream input, java.io.OutputStream encoded, COSDictionary parameters)-
Methods inherited from class org.apache.pdfbox.filter.Filter
decode, decode, encode, findImageReader, findRasterReader, getCompressionLevel, getDecodeParams
-
-
-
-
Field Detail
-
RUN_LENGTH_EOD
private static final int RUN_LENGTH_EOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
decode
public DecodeResult decode(java.io.InputStream encoded, java.io.OutputStream decoded, COSDictionary parameters, int index) throws java.io.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:
java.io.IOException- if the stream cannot be decoded
-
encode
protected void encode(java.io.InputStream input, java.io.OutputStream encoded, COSDictionary parameters) throws java.io.IOException
-
-