Package com.itextpdf.text.pdf
Class FilterHandlers
java.lang.Object
com.itextpdf.text.pdf.FilterHandlers
Encapsulates filter behavior for PDF streams. Classes generally interace with this
using the static getDefaultFilterHandlers() method, then obtain the desired
FilterHandlers.FilterHandler
via a lookup.- Since:
- 5.0.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Handles ASCIIHEXDECODE filterprivate static class
Handles ASCIIHEXDECODE filterprivate static class
Handles CCITTFAXDECODE filterprivate static class
A filter that doesn't modify the stream at allprivate static class
Handles FLATEDECODE filterprivate static class
Handles LZWDECODE filterprivate static class
Handles RUNLENGTHDECODE filterstatic interface
The main interface for creating a newFilterHandlers.FilterHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<PdfName, FilterHandlers.FilterHandler> The defaultFilterHandlers.FilterHandler
s used by iText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteArrayOutputStream
enableMemoryLimitsAwareHandler
(PdfDictionary streamDictionary) Creates aMemoryLimitsAwareOutputStream
which will be used for decompression of the passed pdf stream.static Map
<PdfName, FilterHandlers.FilterHandler>
-
Field Details
-
defaults
The defaultFilterHandlers.FilterHandler
s used by iText
-
-
Constructor Details
-
FilterHandlers
public FilterHandlers()
-
-
Method Details
-
getDefaultFilterHandlers
- Returns:
- the default
FilterHandlers.FilterHandler
s used by iText
-
enableMemoryLimitsAwareHandler
Creates aMemoryLimitsAwareOutputStream
which will be used for decompression of the passed pdf stream.- Parameters:
streamDictionary
- the pdf stream which is going to be decompressed.- Returns:
- the
ByteArrayOutputStream
which will be used for decompression of the passed pdf stream
-