PJX

com.etymon.pjx.stream
Class PdfEncodeStream

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

public class PdfEncodeStream
extends java.lang.Object

Provides commonly used stream encoding functions. This class is synchronized.


Constructor Summary
PdfEncodeStream(PdfManager manager)
          Constructs an instance of this class with a specified manager.
 
Method Summary
 PdfStream compressFlate(PdfStream stream)
          Encodes a stream using the Flate compression method (based on zlib/deflate).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfEncodeStream

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

Parameters:
manager - the manager instance.
Method Detail

compressFlate

public PdfStream compressFlate(PdfStream stream)
                        throws java.io.IOException,
                               PdfFormatException
Encodes a stream using the Flate compression method (based on zlib/deflate). If the stream is already compressed with the Flate, LZW, RunLength, CCITTFax, JBIG2, or DCT method, then this method returns the original stream unmodified. This method uses PdfFlateFilter.encode(PdfStream) to perform the encoding.

Parameters:
stream - the stream to encode.
Returns:
the encoded stream, or the original stream if it is already compressed.
Throws:
java.io.IOException
PdfFormatException

Copyright © 1998-2004 Etymon Systems, Inc.

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