public class FlateDecodeFilter extends MemoryLimitsAwareFilter
| Constructor and Description |
|---|
FlateDecodeFilter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] b,
PdfName filterName,
PdfObject decodeParams,
PdfDictionary streamDictionary)
Decode the byte[] using the provided filterName.
|
static byte[] |
decodePredictor(byte[] in,
PdfObject decodeParams) |
static byte[] |
flateDecode(byte[] in,
boolean strict)
A helper to flateDecode.
|
protected static byte[] |
flateDecodeInternal(byte[] in,
boolean strict,
ByteArrayOutputStream out)
A helper to flateDecode.
|
enableMemoryLimitsAwareHandlerpublic static byte[] flateDecode(byte[] in,
boolean strict)
in - the input datastrict - true to read a correct stream. false to try to read a corrupted stream.public static byte[] decodePredictor(byte[] in,
PdfObject decodeParams)
in - Input byte array.decodeParams - PdfDictionary of decodeParams.public byte[] decode(byte[] b,
PdfName filterName,
PdfObject decodeParams,
PdfDictionary streamDictionary)
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[].protected static byte[] flateDecodeInternal(byte[] in,
boolean strict,
ByteArrayOutputStream out)
in - the input datastrict - true to read a correct stream. false to try to read a corrupted stream.out - the out stream which will be used to write the bytes.Copyright © 1998–2024 Apryse Group NV. All rights reserved.