de.intarsys.pdf.filter
Class Filter
java.lang.Object
de.intarsys.pdf.filter.Filter
- All Implemented Interfaces:
- IFilter
- Direct Known Subclasses:
- CCITTFaxFilter, CryptFilter, DCTFilter, JBIG2Filter, JPXFilter, LZWFilter, StreamBasedFilter
public abstract class Filter
- extends Object
- implements IFilter
The abstract superclass for the implementation of IFilter.
CN_Filter_A85
public static final COSName CN_Filter_A85
CN_Filter_AHx
public static final COSName CN_Filter_AHx
CN_Filter_ASCII85Decode
public static final COSName CN_Filter_ASCII85Decode
CN_Filter_ASCIIHexDecode
public static final COSName CN_Filter_ASCIIHexDecode
CN_Filter_CCF
public static final COSName CN_Filter_CCF
CN_Filter_CCITTFaxDecode
public static final COSName CN_Filter_CCITTFaxDecode
CN_Filter_Crypt
public static final COSName CN_Filter_Crypt
CN_Filter_DCT
public static final COSName CN_Filter_DCT
CN_Filter_DCTDecode
public static final COSName CN_Filter_DCTDecode
CN_Filter_Fl
public static final COSName CN_Filter_Fl
CN_Filter_FlateDecode
public static final COSName CN_Filter_FlateDecode
CN_Filter_JBIG2Decode
public static final COSName CN_Filter_JBIG2Decode
CN_Filter_JPXDecode
public static final COSName CN_Filter_JPXDecode
CN_Filter_LZW
public static final COSName CN_Filter_LZW
CN_Filter_LZWDecode
public static final COSName CN_Filter_LZWDecode
CN_Filter_RL
public static final COSName CN_Filter_RL
CN_Filter_RunLengthDecode
public static final COSName CN_Filter_RunLengthDecode
Filter
public Filter(COSDictionary paramOptions)
decode
public byte[] decode(byte[] source,
int offset,
int length)
throws IOException
- Specified by:
decode
in interface IFilter
- Throws:
IOException
encode
public byte[] encode(byte[] source,
int offset,
int length)
throws IOException
- Specified by:
encode
in interface IFilter
- Throws:
IOException
getOptionFieldBoolean
public boolean getOptionFieldBoolean(COSName name,
boolean defaultValue)
getOptionFieldInt
public int getOptionFieldInt(COSName name,
int defaultValue)
- Parameters:
name
- defaultValue
-
- Returns:
- the integer value of the entry named #name or the specified
default value if not present
getOptions
public COSDictionary getOptions()
getStream
public COSStream getStream()
- Specified by:
getStream
in interface IFilter
setStream
public void setStream(COSStream stream)
- Specified by:
setStream
in interface IFilter
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.