Interface Filter

All Known Implementing Classes:
ASCII85Filter, FlateFilter

public interface Filter
A filter that can be used to encode stream data in PDF output.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    encode(byte[] source)
    Apply the encoding to the bytes in source and return the encoded data in a new array.
    Returns the filter type.
  • Method Details

    • getFilterType

      FilterType getFilterType()
      Returns the filter type.
      Returns:
      The filter type (never null).
    • encode

      byte[] encode(byte[] source)
      Apply the encoding to the bytes in source and return the encoded data in a new array.
      Parameters:
      source - the source (null not permitted).
      Returns:
      The encoded bytes.