Class FlateDecodeStrictFilter

All Implemented Interfaces:
IFilterHandler

public class FlateDecodeStrictFilter extends FlateDecodeFilter
Handles strict FlateDecode filter.
  • Constructor Details

    • FlateDecodeStrictFilter

      public FlateDecodeStrictFilter()
  • Method Details

    • 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, 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