PJX

com.etymon.pjx.stream
Class PdfDecodeStream

java.lang.Object
  extended bycom.etymon.pjx.stream.PdfDecodeStream

public class PdfDecodeStream
extends java.lang.Object

Performs pipelined stream filtering to attempt to decode a stream. This class is synchronized.


Constructor Summary
PdfDecodeStream(PdfManager manager)
          Constructs an instance of this class with a specified manager.
 
Method Summary
 PdfStream decode(PdfStream stream)
          Applies a sequence of stream filter decoders to the specified stream, based on the stream dictionary's Filter entry, in order to decode the stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfDecodeStream

public PdfDecodeStream(PdfManager manager)
Constructs an instance of this class with a specified manager.

Parameters:
manager - the manager instance.
Method Detail

decode

public PdfStream decode(PdfStream stream)
                 throws java.io.IOException,
                        PdfFormatException,
                        PdfDecoderException
Applies a sequence of stream filter decoders to the specified stream, based on the stream dictionary's Filter entry, in order to decode the stream. If the stream is encoded with an unsupported filter, this method will throw PdfDecoderNotSupportedException to indicate that it is unable to decode the stream. If the stream is not encoded with any filters, this method returns the original stream unmodified.

Parameters:
stream - the stream to decode.
Returns:
the decoded stream, or the original stream if it is not encoded with any filters.
Throws:
java.io.IOException
PdfFormatException
PdfDecoderException

Copyright © 1998-2004 Etymon Systems, Inc.

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