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 classHandles ASCIIHEXDECODE filterprivate static classHandles ASCIIHEXDECODE filterprivate static classHandles CCITTFAXDECODE filterprivate static classA filter that doesn't modify the stream at allprivate static classHandles FLATEDECODE filterprivate static classHandles LZWDECODE filterprivate static classHandles RUNLENGTHDECODE filterstatic interfaceThe main interface for creating a newFilterHandlers.FilterHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<PdfName, FilterHandlers.FilterHandler> The defaultFilterHandlers.FilterHandlers used by iText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteArrayOutputStreamenableMemoryLimitsAwareHandler(PdfDictionary streamDictionary) Creates aMemoryLimitsAwareOutputStreamwhich will be used for decompression of the passed pdf stream.static Map<PdfName, FilterHandlers.FilterHandler>
-
Field Details
-
defaults
The defaultFilterHandlers.FilterHandlers used by iText
-
-
Constructor Details
-
FilterHandlers
public FilterHandlers()
-
-
Method Details
-
getDefaultFilterHandlers
- Returns:
- the default
FilterHandlers.FilterHandlers used by iText
-
enableMemoryLimitsAwareHandler
Creates aMemoryLimitsAwareOutputStreamwhich will be used for decompression of the passed pdf stream.- Parameters:
streamDictionary- the pdf stream which is going to be decompressed.- Returns:
- the
ByteArrayOutputStreamwhich will be used for decompression of the passed pdf stream
-