com.etymon.pjx.stream
Interface PdfStreamFilter

All Known Implementing Classes:
PdfFlateFilter

public interface PdfStreamFilter

A filtering function that implements PDF stream filter encoding and decoding.


Method Summary
 PdfStream decode(PdfStream stream)
          Decodes a stream using this filter's decoding method.
 PdfStream encode(PdfStream stream)
          Encodes a stream using this filter's encoding method.
 PdfName getName()
          Returns the name of this filter method.
 

Method Detail

getName

PdfName getName()
Returns the name of this filter method. This is the name to be used in the stream dictionary.


encode

PdfStream encode(PdfStream stream)
                 throws java.io.IOException,
                        PdfFormatException
Encodes a stream using this filter's encoding method.

Parameters:
stream - the stream to encode.
Returns:
the encoded stream.
Throws:
PdfFormatException
java.io.IOException

decode

PdfStream decode(PdfStream stream)
                 throws java.io.IOException,
                        PdfFormatException,
                        PdfDecoderFormatException
Decodes a stream using this filter's decoding method.

Parameters:
stream - the stream to decode.
Returns:
the decoded stream.
Throws:
PdfFormatException
java.io.IOException
PdfDecoderFormatException