Class FlateDecodeStrictFilter
java.lang.Object
com.itextpdf.kernel.pdf.MemoryLimitsAwareFilter
com.itextpdf.kernel.pdf.filters.FlateDecodeFilter
com.itextpdf.kernel.pdf.filters.FlateDecodeStrictFilter
- All Implemented Interfaces:
IFilterHandler
Handles strict FlateDecode filter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary) Decode the byte[] using the provided filterName.private static byte[]flateDecode(byte[] in, ByteArrayOutputStream out) A helper to flateDecode.Methods inherited from class FlateDecodeFilter
decodePredictor, flateDecode, flateDecodeInternalMethods inherited from class MemoryLimitsAwareFilter
enableMemoryLimitsAwareHandler
-
Constructor Details
-
FlateDecodeStrictFilter
public FlateDecodeStrictFilter()
-
-
Method Details
-
decode
public byte[] decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary) Decode the byte[] using the provided filterName.- Specified by:
decodein interfaceIFilterHandler- Overrides:
decodein classFlateDecodeFilter- Parameters:
b- the bytes that need to be decodedfilterName- PdfName of the filterdecodeParams- decode parametersstreamDictionary- the dictionary of the stream. Can contain additional information needed to decode the byte[].- Returns:
- decoded byte array
-
flateDecode
A helper to flateDecode.- Parameters:
in- the input dataout- the out stream which will be used to write the bytes.- Returns:
- the decoded data
-