Class FilterUtil
java.lang.Object
com.itextpdf.io.util.FilterUtil
This file is a helper class for internal usage only.
Be aware that its API and functionality may be changed in future.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.LoggerThe Logger instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]flateDecode(byte[] input) Decodes a stream that has the FlateDecode filter.static byte[]flateDecode(byte[] input, boolean strict) A helper to FlateDecode.static InputStreamstatic voidinflateData(byte[] deflated, byte[] inflated) This method provides support for general purpose decompression using the popular ZLIB compression library.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGERThe Logger instance.
-
-
Constructor Details
-
FilterUtil
private FilterUtil()
-
-
Method Details
-
flateDecode
public static byte[] flateDecode(byte[] input, boolean strict) A helper to FlateDecode.- Parameters:
input- the input datastrict-trueto read a correct stream.falseto try to read a corrupted stream- Returns:
- the decoded data
-
flateDecode
public static byte[] flateDecode(byte[] input) Decodes a stream that has the FlateDecode filter.- Parameters:
input- the input data- Returns:
- the decoded data
-
inflateData
public static void inflateData(byte[] deflated, byte[] inflated) This method provides support for general purpose decompression using the popular ZLIB compression library.- Parameters:
deflated- the input data bytesinflated- the buffer for the uncompressed data
-
getInflaterInputStream
-