Package com.itextpdf.kernel.pdf.filters
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
public class FlateDecodeStrictFilter extends FlateDecodeFilter
Handles strict FlateDecode filter.
-
-
Constructor Summary
Constructors Constructor Description FlateDecodeStrictFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
Decode the byte[] using the provided filterName.private static byte[]
flateDecode(byte[] in, java.io.ByteArrayOutputStream out)
A helper to flateDecode.-
Methods inherited from class com.itextpdf.kernel.pdf.filters.FlateDecodeFilter
decodePredictor, flateDecode, flateDecodeInternal
-
Methods inherited from class com.itextpdf.kernel.pdf.MemoryLimitsAwareFilter
enableMemoryLimitsAwareHandler
-
-
-
-
Method Detail
-
decode
public byte[] decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
Decode the byte[] using the provided filterName.- Specified by:
decode
in interfaceIFilterHandler
- Overrides:
decode
in 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
private static byte[] flateDecode(byte[] in, java.io.ByteArrayOutputStream out)
A helper to flateDecode.- Parameters:
in
- the input dataout
- the out stream which will be used to write the bytes.- Returns:
- the decoded data
-
-