org.apache.fop.pdf
Class PDFFilter

Direct Known Subclasses:
ASCII85Filter, ASCIIHexFilter, FlateFilter

public abstract class PDFFilter


Method Summary
 abstract byte[]encode(byte[] data)
          encode the given data with the filter
 abstract StringgetDecodeParms()
          return a parameter dictionary for this filter, or null
 abstract StringgetName()
          return a PDF string representation of the filter, e.g.
 booleanisApplied()
           
 voidsetApplied(boolean b)
          Set the applied attribute to the given value.

Method Detail

encode

public abstract byte[] encode(byte[] data)
encode the given data with the filter

getDecodeParms

public abstract String getDecodeParms()
return a parameter dictionary for this filter, or null

getName

public abstract String getName()
return a PDF string representation of the filter, e.g. /FlateDecode

isApplied

public boolean isApplied()

setApplied

public void setApplied(boolean b)
Set the applied attribute to the given value. This attribute is used to determine if this filter is just a placeholder for the decodeparms and dictionary entries, or if the filter needs to actually encode the data. For example if the raw data is copied out of an image file in it's compressed format, then this should be set to true and the filter options should be set to those which the raw data was encoded with.