public class PdfEncodeStream
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PdfEncodeStream(PdfManager manager)
Constructs an instance of this class with a specified
manager.
|
Modifier and Type | Method and Description |
---|---|
PdfStream |
compressFlate(PdfStream stream)
Encodes a stream using the Flate compression method (based
on zlib/deflate).
|
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
public PdfEncodeStream(PdfManager manager)
manager
- the manager instance.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