Package org.apache.pdfbox.filter
Class ASCIIHexFilter
- java.lang.Object
-
- org.apache.pdfbox.filter.Filter
-
- org.apache.pdfbox.filter.ASCIIHexFilter
-
final class ASCIIHexFilter extends Filter
Decodes data encoded in an ASCII hexadecimal form, reproducing the original binary data.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
private static int[]
REVERSE_HEX
-
Fields inherited from class org.apache.pdfbox.filter.Filter
SYSPROP_DEFLATELEVEL
-
-
Constructor Summary
Constructors Constructor Description ASCIIHexFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecodeResult
decode(java.io.InputStream encoded, java.io.OutputStream decoded, COSDictionary parameters, int index)
Decodes data, producing the original non-encoded data.void
encode(java.io.InputStream input, java.io.OutputStream encoded, COSDictionary parameters)
private boolean
isEOD(int c)
private boolean
isWhitespace(int c)
-
Methods inherited from class org.apache.pdfbox.filter.Filter
decode, encode, findImageReader, getCompressionLevel, getDecodeParams
-
-
-
-
Method Detail
-
decode
public DecodeResult decode(java.io.InputStream encoded, java.io.OutputStream decoded, COSDictionary parameters, int index) throws java.io.IOException
Description copied from class:Filter
Decodes data, producing the original non-encoded data.- Specified by:
decode
in classFilter
- Parameters:
encoded
- the encoded byte streamdecoded
- the stream where decoded data will be writtenparameters
- the parameters used for decodingindex
- the index to the filter being decoded- Returns:
- repaired parameters dictionary, or the original parameters dictionary
- Throws:
java.io.IOException
- if the stream cannot be decoded
-
isWhitespace
private boolean isWhitespace(int c)
-
isEOD
private boolean isEOD(int c)
-
encode
public void encode(java.io.InputStream input, java.io.OutputStream encoded, COSDictionary parameters) throws java.io.IOException
-
-