public interface Decoder
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.
|
int |
outputSize(int inputSize)
Expected number of bytes in the output buffer for an input buffer of the
given size.
|
void decode(CharBuffer input, ByteBuffer output)
finalize(ByteBuffer)
. after all input bytes have been provided.input
- Input character buffer.output
- Output byte buffer.void finalize(ByteBuffer output)
output
- Output byte buffer.int outputSize(int inputSize)
inputSize
- Size of input buffer in characters.Copyright © 2016 JBoss by Red Hat. All rights reserved.