Package com.itextpdf.text.pdf
Class FilterHandlers
- java.lang.Object
-
- com.itextpdf.text.pdf.FilterHandlers
-
public final class FilterHandlers extends java.lang.Object
Encapsulates filter behavior for PDF streams. Classes generally interace with this using the static getDefaultFilterHandlers() method, then obtain the desiredFilterHandlers.FilterHandler
via a lookup.- Since:
- 5.0.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FilterHandlers.FilterHandler
The main interface for creating a newFilterHandlers.FilterHandler
-
Constructor Summary
Constructors Constructor Description FilterHandlers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.ByteArrayOutputStream
enableMemoryLimitsAwareHandler(PdfDictionary streamDictionary)
Creates aMemoryLimitsAwareOutputStream
which will be used for decompression of the passed pdf stream.static java.util.Map<PdfName,FilterHandlers.FilterHandler>
getDefaultFilterHandlers()
-
-
-
Method Detail
-
getDefaultFilterHandlers
public static java.util.Map<PdfName,FilterHandlers.FilterHandler> getDefaultFilterHandlers()
- Returns:
- the default
FilterHandlers.FilterHandler
s used by iText
-
enableMemoryLimitsAwareHandler
public static java.io.ByteArrayOutputStream enableMemoryLimitsAwareHandler(PdfDictionary streamDictionary)
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
-
-