public class COSFilterASCIIHexDecode extends ASBufferedInFilter
| Modifier and Type | Field and Description |
|---|---|
static byte |
ER |
BF_BUFFER_SIZE, buffer, START_BUFFER_SIZEisClosed, isSourceClosed, resourceUsers| Constructor and Description |
|---|
COSFilterASCIIHexDecode(ASInputStream stream)
Constructor from encoded stream.
|
| Modifier and Type | Method and Description |
|---|---|
static byte |
decodeLoHex(byte val)
Converts char byte to it's hex value, e.g.
|
int |
read(byte[] buffer,
int size)
Reads up to size bytes of ASCII Hex decoded data into buffer.
|
addToBuffer, bufferPop, bufferPopArray, bufferSize, closeResource, concatenate, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, getReadCounter, getStream, getStreamUntilToken, initialize, isEOF, peek, peek, processBuffer, read, readByte, reset, resetReadCounter, skip, unread, unreadclose, decrementResourceUsers, getInputStream, incrementResourceUsers, read, setInputStreamcreateStreamFromStreamavailable, mark, markSupported, read, skippublic static final byte ER
public COSFilterASCIIHexDecode(ASInputStream stream) throws IOException
stream - is ASCII Hex encoded stream.IOExceptionpublic int read(byte[] buffer,
int size)
throws IOException
read in class ASBufferedInFilterbuffer - is byte array where decoded data will be read.size - is maximal amount of decoded bytes.IOExceptionpublic static byte decodeLoHex(byte val)
val - is character that should be hexadecimal digit.Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.