org.apache.fop.pdf
Class FlateFilter
A filter to deflate a stream.
Note that the attributes for
prediction, colors, bitsPerComponent, and columns are not supported
when this filter is used to handle the data compression. They are
only valid for externally encoded data such as that from a graphics
file.
PREDICTION_NONE
public static final int PREDICTION_NONE
The supported mode when this filter is used for data compression
PREDICTION_PNG_AVG
public static final int PREDICTION_PNG_AVG
Mode for externally encoded data.
PREDICTION_PNG_NONE
public static final int PREDICTION_PNG_NONE
Mode for externally encoded data.
PREDICTION_PNG_OPT
public static final int PREDICTION_PNG_OPT
Mode for externally encoded data.
PREDICTION_PNG_PAETH
public static final int PREDICTION_PNG_PAETH
Mode for externally encoded data.
PREDICTION_PNG_SUB
public static final int PREDICTION_PNG_SUB
Mode for externally encoded data.
PREDICTION_PNG_UP
public static final int PREDICTION_PNG_UP
Mode for externally encoded data.
PREDICTION_TIFF2
public static final int PREDICTION_TIFF2
Mode for externally encoded data.
applyFilter
public OutputStream applyFilter(OutputStream out)
throws IOException
- applyFilter in interface PDFFilter
getBitsPerComponent
public int getBitsPerComponent()
Get the number of bits per component.
- the number of bits per component
getColors
public int getColors()
Get the colors for this filter.
- the colors for this filter
getColumns
public int getColumns()
Get the number of columns for this filter.
getDecodeParms
public PDFObject getDecodeParms()
Get the decode params for this filter.
- getDecodeParms in interface PDFFilter
- a string containing the decode params for this filter
getName
public String getName()
Get the name of this filter.
- getName in interface PDFFilter
- the pdf name of the flate decode filter
getPredictor
public int getPredictor()
Get the predictor for this filter.
- the predictor used for this filter
setBitsPerComponent
public void setBitsPerComponent(int bits)
throws PDFFilterException
Set the number of bits per component.
bits
- the number of bits per component
setColors
public void setColors(int colors)
throws PDFFilterException
Set the colors for this filter.
colors
- the colors to use
setColumns
public void setColumns(int columns)
throws PDFFilterException
Set the number of columns for this filter.
columns
- the number of columns to use for the filter
setPredictor
public void setPredictor(int predictor)
throws PDFFilterException
Set the predictor for this filter.
predictor
- the predictor to use
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.