PJX

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

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


encode

public 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

public 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

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.