Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decode​(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)
      Decodes encoded using this filter's algorithm.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlateDecodeFilter

        public FlateDecodeFilter()
    • Method Detail

      • decode

        public byte[] decode​(byte[] encoded,
                             COSDictionary parameters,
                             COSDictionary streamDict)
                      throws java.io.IOException
        Description copied from interface: Filter
        Decodes encoded using this filter's algorithm.
        Specified by:
        decode in interface Filter
        Parameters:
        encoded - the filtered bytes, as stored in the file
        parameters - this filter's DecodeParms dictionary (never null; 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