|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.etymon.pjx.stream.PdfFlateFilter
public class PdfFlateFilter
Implements a stream filter for Flate compression (based on zlib/deflate). This class is synchronized.
| Field Summary | |
|---|---|
protected byte[] |
_ba
A byte array used for buffering. |
(package private) java.util.zip.Deflater |
_deflater
Instance used for deflating. |
(package private) java.util.zip.Inflater |
_inflater
Instance used for inflating. |
protected PdfManager |
_m
The manager associated with the PDF document. |
protected static PdfName |
PDFNAME_FILTER
|
protected static PdfName |
PDFNAME_FLATEDECODE
|
| Constructor Summary | |
|---|---|
PdfFlateFilter(PdfManager manager)
Constructs an instance of this class with a specified manager instance. |
|
| 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. |
| 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 PdfManager _m
protected byte[] _ba
java.util.zip.Deflater _deflater
java.util.zip.Inflater _inflater
| Constructor Detail |
|---|
public PdfFlateFilter(PdfManager manager)
manager - the manager instance.| Method Detail |
|---|
public PdfName getName()
PdfStreamFilter
getName in interface PdfStreamFilter
public PdfStream encode(PdfStream stream)
throws java.io.IOException,
PdfFormatException
PdfStreamFilter
encode in interface PdfStreamFilterstream - the stream to encode.
PdfFormatException
java.io.IOException
public PdfStream decode(PdfStream stream)
throws java.io.IOException,
PdfFormatException,
PdfDecoderFormatException
PdfStreamFilter
decode in interface PdfStreamFilterstream - the stream to decode.
PdfFormatException
java.io.IOException
PdfDecoderFormatException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||