public abstract class PDFFilter
extends java.lang.Object
PDF Filter class. This class represents a PDF filter object. Filter implementations should extend this class.
This work was authored by Eric Schaeffer and Kelly A. Campbell.
Constructor and Description |
---|
PDFFilter() |
Modifier and Type | Method and Description |
---|---|
abstract java.io.OutputStream |
applyFilter(java.io.OutputStream out)
Applies a filter to an OutputStream.
|
abstract PDFObject |
getDecodeParms()
return a parameter dictionary for this filter, or null
|
abstract java.lang.String |
getName()
return a PDF string representation of the filter, e.g.
|
boolean |
isApplied()
Check if this filter has been applied.
|
boolean |
isASCIIFilter()
Returns true if the filter is an ASCII filter that isn't necessary
when encryption is active.
|
void |
setApplied(boolean b)
Set the applied attribute to the given value.
|
public boolean isApplied()
public void setApplied(boolean b)
b
- set the applied value to thispublic abstract java.lang.String getName()
public boolean isASCIIFilter()
public abstract PDFObject getDecodeParms()
public abstract java.io.OutputStream applyFilter(java.io.OutputStream out) throws java.io.IOException
out
- contents to be filteredjava.io.IOException
- In case of an I/O problemCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.