Package com.pd4ml.pdf.cos.filter
Class FlateDecodeFilter
- java.lang.Object
-
- com.pd4ml.pdf.cos.filter.FlateDecodeFilter
-
- All Implemented Interfaces:
Filter
public class FlateDecodeFilter extends java.lang.Object implements Filter
/FlateDecode: standard zlib/deflate compression (RFC 1950), by far the most common PDF stream filter. Also applies the optional PNG "Predictor" post-processing used heavily by cross-reference streams and object streams.
-
-
Constructor Summary
Constructors Constructor Description FlateDecodeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)Decodesencodedusing this filter's algorithm.
-
-
-
Method Detail
-
decode
public byte[] decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict) throws java.io.IOExceptionDescription copied from interface:FilterDecodesencodedusing this filter's algorithm.- Specified by:
decodein interfaceFilter- Parameters:
encoded- the filtered bytes, as stored in the fileparameters- this filter'sDecodeParmsdictionary (nevernull; empty if the stream had none)streamDict- the owning stream's full dictionary, in case a filter needs sibling entries (unused by the filters implemented here, but kept for extensibility/parity with PDFBox's Filter API)- Throws:
java.io.IOException
-
-