jPod PDF library

de.intarsys.pdf.filter
Class Filter

java.lang.Object
  extended by 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.


Field Summary
static COSName CN_Filter_A85
           
static COSName CN_Filter_AHx
           
static COSName CN_Filter_ASCII85Decode
           
static COSName CN_Filter_ASCIIHexDecode
           
static COSName CN_Filter_CCF
           
static COSName CN_Filter_CCITTFaxDecode
           
static COSName CN_Filter_Crypt
           
static COSName CN_Filter_DCT
           
static COSName CN_Filter_DCTDecode
           
static COSName CN_Filter_Fl
           
static COSName CN_Filter_FlateDecode
           
static COSName CN_Filter_JBIG2Decode
           
static COSName CN_Filter_JPXDecode
           
static COSName CN_Filter_LZW
           
static COSName CN_Filter_LZWDecode
           
static COSName CN_Filter_RL
           
static COSName CN_Filter_RunLengthDecode
           
 
Constructor Summary
Filter(COSDictionary paramOptions)
           
 
Method Summary
 byte[] decode(byte[] source, int offset, int length)
           
 byte[] encode(byte[] source, int offset, int length)
           
 COSObject getOption(COSName name)
          The decode option declared for the key name or COSNull.
 COSDictionary getOptions()
           
 COSStream getStream()
           
 void setStream(COSStream stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Filter

public Filter(COSDictionary paramOptions)
Method Detail

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

getOption

public COSObject getOption(COSName name)
The decode option declared for the key name or COSNull.

Parameters:
name -
Returns:
The decode option declared for the key name or COSNull.

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

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.