Class FlateDecodeStrictFilter

    • Constructor Detail

      • FlateDecodeStrictFilter

        public FlateDecodeStrictFilter()
    • Method Detail

      • decode

        public byte[] decode​(byte[] b,
                             PdfName filterName,
                             PdfObject decodeParams,
                             PdfDictionary streamDictionary)
        Decode the byte[] using the provided filterName.
        Specified by:
        decode in interface IFilterHandler
        Overrides:
        decode in class FlateDecodeFilter
        Parameters:
        b - the bytes that need to be decoded
        filterName - PdfName of the filter
        decodeParams - decode parameters
        streamDictionary - the dictionary of the stream. Can contain additional information needed to decode the byte[].
        Returns:
        decoded byte array
      • flateDecode

        private static byte[] flateDecode​(byte[] in,
                                          java.io.ByteArrayOutputStream out)
        A helper to flateDecode.
        Parameters:
        in - the input data
        out - the out stream which will be used to write the bytes.
        Returns:
        the decoded data