- in
- the input buffer.
- out
- the output buffer.
- endOfInput
- true if all the input characters have been provided.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalStateException if decoding has started or no more input is needed in this decoding progress. Java.Nio.Charset.CoderMalfunctionError if the CharsetDecoder.DecodeLoop(Java.Nio.ByteBuffer, Java.Nio.CharBuffer) method threw an BufferUnderflowException or BufferOverflowException.
Decodes bytes starting at the current position of the given input buffer, and writes the equivalent character sequence into the given output buffer from its current position.
The buffers' position will be changed with the reading and writing operation, but their limits and marks will be kept intact.
A CoderResult instance will be returned according to following rules:
The endOfInput parameter indicates that the invoker cannot provide further input. This parameter is true if and only if the bytes in current input buffer are all inputs for this decoding operation. Note that it is common and won't cause an error if the invoker sets false and then can't provide more input, while it may cause an error if the invoker always sets true in several consecutive invocations. This would make the remaining input to be treated as malformed input.
This method invokes the CharsetDecoder.DecodeLoop(Java.Nio.ByteBuffer, Java.Nio.CharBuffer) method to implement the basic decode logic for a specific charset.