Constructor and Description |
---|
HexDecoder() |
Modifier and Type | Method and Description |
---|---|
void |
decode(CharBuffer input,
ByteBuffer output)
Decodes characters in input buffer into bytes placed in the output buffer.
|
void |
finalize(ByteBuffer output)
Performs final output decoding (e.g. padding) after all input characters have been provided.
|
int |
outputSize(int inputSize)
Expected number of bytes in the output buffer for an input buffer of the given size.
|
public void decode(CharBuffer input, ByteBuffer output) throws EncodingException
Decoder
Decoder.finalize(ByteBuffer)
. after all input bytes have been provided.decode
in interface Decoder
input
- Input character buffer.output
- Output byte buffer.EncodingException
- on decoding errors.public void finalize(ByteBuffer output) throws EncodingException
Decoder
finalize
in interface Decoder
output
- Output byte buffer.EncodingException
- on decoding errors.public int outputSize(int inputSize)
Decoder
outputSize
in interface Decoder
inputSize
- Size of input buffer in characters.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.