| Modifier and Type | Field and Description |
|---|---|
private int |
count
Number of encoded characters processed.
|
private static byte[] |
DECODING_TABLE
Hex character decoding table.
|
| Constructor and Description |
|---|
HexDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(java.nio.CharBuffer input,
java.nio.ByteBuffer output)
Decodes characters in input buffer into bytes placed in the output buffer.
|
void |
finalize(java.nio.ByteBuffer output)
Performs final output decoding (e.g.
|
private static byte |
lookup(char c)
Looks up the byte that corresponds to the given character.
|
int |
outputSize(int inputSize)
Expected number of bytes in the output buffer for an input buffer of the given size.
|
private static final byte[] DECODING_TABLE
private int count
public void decode(java.nio.CharBuffer input,
java.nio.ByteBuffer output)
throws EncodingException
DecoderDecoder.finalize(ByteBuffer). after all input bytes have been provided.decode in interface Decoderinput - Input character buffer.output - Output byte buffer.EncodingException - on decoding errors.public void finalize(java.nio.ByteBuffer output)
throws EncodingException
Decoderfinalize in interface Decoderoutput - Output byte buffer.EncodingException - on decoding errors.public int outputSize(int inputSize)
DecoderoutputSize in interface DecoderinputSize - Size of input buffer in characters.private static byte lookup(char c)
c - Encoded character.