public interface Encoder
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.nio.ByteBuffer input,
java.nio.CharBuffer output)
Encodes bytes in input buffer into characters placed in the output buffer.
|
void |
finalize(java.nio.CharBuffer output)
Performs final output encoding (e.g.
|
int |
outputSize(int inputSize)
Expected number of characters in the output buffer for an input buffer of the given size.
|
void encode(java.nio.ByteBuffer input,
java.nio.CharBuffer output)
throws EncodingException
finalize(java.nio.CharBuffer) after all input bytes have been provided.input - Input byte buffer.output - Output character buffer.EncodingException - on encoding errors.void finalize(java.nio.CharBuffer output)
throws EncodingException
output - Output character buffer.EncodingException - on encoding errors.int outputSize(int inputSize)
inputSize - Size of input buffer in bytes.