Package com.itextpdf.text.pdf
Class FilterHandlers
- java.lang.Object
-
- com.itextpdf.text.pdf.FilterHandlers
-
public final class FilterHandlers extends 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 ByteArrayOutputStream
enableMemoryLimitsAwareHandler(PdfDictionary streamDictionary)
Creates aMemoryLimitsAwareOutputStream
which will be used for decompression of the passed pdf stream.static Map<PdfName,FilterHandlers.FilterHandler>
getDefaultFilterHandlers()
-
-
-
Method Detail
-
getDefaultFilterHandlers
public static Map<PdfName,FilterHandlers.FilterHandler> getDefaultFilterHandlers()
- Returns:
- the default
FilterHandlers.FilterHandler
s used by iText
-
enableMemoryLimitsAwareHandler
public static 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
-
-