Class DoNothingFilter

  • All Implemented Interfaces:
    IFilterHandler

    public class DoNothingFilter
    extends java.lang.Object
    implements IFilterHandler
    A filter that doesn't modify the stream at all
    • Constructor Summary

      Constructors 
      Constructor Description
      DoNothingFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decode​(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
      Decode the byte[] using the provided filterName.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lastFilterName

        private PdfName lastFilterName
    • Constructor Detail

      • DoNothingFilter

        public DoNothingFilter()
    • Method Detail

      • decode

        public byte[] decode​(byte[] b,
                             PdfName filterName,
                             PdfObject decodeParams,
                             PdfDictionary streamDictionary)
        Description copied from interface: IFilterHandler
        Decode the byte[] using the provided filterName.
        Specified by:
        decode in interface IFilterHandler
        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