Package com.itextpdf.kernel.pdf.filters
Class ASCIIHexDecodeFilter
- java.lang.Object
-
- com.itextpdf.kernel.pdf.MemoryLimitsAwareFilter
-
- com.itextpdf.kernel.pdf.filters.ASCIIHexDecodeFilter
-
- All Implemented Interfaces:
IFilterHandler
public class ASCIIHexDecodeFilter extends MemoryLimitsAwareFilter
Handles ASCIIHexDecode filter
-
-
Constructor Summary
Constructors Constructor Description ASCIIHexDecodeFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static byte[]ASCIIHexDecode(byte[] in)Decodes a byte[] according to ASCII Hex encoding.private static byte[]ASCIIHexDecodeInternal(byte[] in, java.io.ByteArrayOutputStream out)Decodes a byte[] according to ASCII Hex encoding.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
-
ASCIIHexDecode
public static byte[] ASCIIHexDecode(byte[] in)
Decodes a byte[] according to ASCII Hex encoding.- Parameters:
in- byte[] to be decoded- Returns:
- 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
-
ASCIIHexDecodeInternal
private static byte[] ASCIIHexDecodeInternal(byte[] in, java.io.ByteArrayOutputStream out)Decodes a byte[] according to ASCII Hex encoding.- Parameters:
in- byte[] to be decodedout- the out stream which will be used to write the bytes.- Returns:
- decoded byte[]
-
-