Package com.itextpdf.kernel.pdf.filters
Class ASCII85DecodeFilter
- java.lang.Object
-
- com.itextpdf.kernel.pdf.MemoryLimitsAwareFilter
-
- com.itextpdf.kernel.pdf.filters.ASCII85DecodeFilter
-
- All Implemented Interfaces:
IFilterHandler
public class ASCII85DecodeFilter extends MemoryLimitsAwareFilter
Handles ASCII85Decode filter
-
-
Constructor Summary
Constructors Constructor Description ASCII85DecodeFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static byte[]
ASCII85Decode(byte[] in)
Decodes the input bytes according to ASCII85.private static byte[]
ASCII85DecodeInternal(byte[] in, java.io.ByteArrayOutputStream out)
Decodes the input bytes according to ASCII85.byte[]
decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
Decode the byte[] using the provided filterName.-
Methods inherited from class com.itextpdf.kernel.pdf.MemoryLimitsAwareFilter
enableMemoryLimitsAwareHandler
-
-
-
-
Method Detail
-
ASCII85Decode
public static byte[] ASCII85Decode(byte[] in)
Decodes the input bytes according to ASCII85.- Parameters:
in
- the byte[] to be decoded- Returns:
- the decoded byte[]
-
decode
public byte[] decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
Decode the byte[] using the provided filterName.- 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
-
ASCII85DecodeInternal
private static byte[] ASCII85DecodeInternal(byte[] in, java.io.ByteArrayOutputStream out)
Decodes the input bytes according to ASCII85.- Parameters:
in
- the byte[] to be decodedout
- the out stream which will be used to write the bytes.- Returns:
- the decoded byte[]
-
-