|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pjx.stream.PdfEncodeStream
public class PdfEncodeStream
Provides commonly used stream encoding functions. This class is synchronized.
Field Summary | |
---|---|
protected java.util.Set |
_compressionFilters
The set of stream filters used for compression. |
protected PdfFlateFilter |
_flateFilter
|
protected PdfManager |
_m
The manager associated with the PDF document. |
protected static PdfName |
PDFNAME_CCITTFAXDECODE
|
protected static PdfName |
PDFNAME_DCTDECODE
|
protected static PdfName |
PDFNAME_FILTER
|
protected static PdfName |
PDFNAME_FLATEDECODE
|
protected static PdfName |
PDFNAME_JBIG2DECODE
|
protected static PdfName |
PDFNAME_LZWDECODE
|
protected static PdfName |
PDFNAME_RUNLENGTHDECODE
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final PdfName PDFNAME_FILTER
protected static final PdfName PDFNAME_FLATEDECODE
protected static final PdfName PDFNAME_LZWDECODE
protected static final PdfName PDFNAME_RUNLENGTHDECODE
protected static final PdfName PDFNAME_CCITTFAXDECODE
protected static final PdfName PDFNAME_JBIG2DECODE
protected static final PdfName PDFNAME_DCTDECODE
protected java.util.Set _compressionFilters
protected PdfFlateFilter _flateFilter
protected PdfManager _m
Constructor Detail |
---|
public PdfEncodeStream(PdfManager manager)
manager
- the manager instance.Method Detail |
---|
public PdfStream compressFlate(PdfStream stream) throws java.io.IOException, PdfFormatException
PdfFlateFilter.encode(PdfStream)
to perform the encoding.
stream
- the stream to encode.
java.io.IOException
PdfFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |