Class ASCII85Filter

java.lang.Object
com.orsonpdf.filter.ASCII85Filter
All Implemented Interfaces:
Filter

public class ASCII85Filter extends Object implements Filter
A filter that can encode in ASCII-85 format.
  • Constructor Details

    • ASCII85Filter

      public ASCII85Filter()
      Default contructor.
  • Method Details

    • getFilterType

      public FilterType getFilterType()
      Returns the filter type.
      Specified by:
      getFilterType in interface Filter
      Returns:
      FilterType.ASCII85.
    • encode

      public byte[] encode(byte[] source)
      Description copied from interface: Filter
      Apply the encoding to the bytes in source and return the encoded data in a new array.
      Specified by:
      encode in interface Filter
      Parameters:
      source - the source (null not permitted).
      Returns:
      The encoded bytes.