java.lang.ObjectA description of the result state of a coder.java.nio.charset.CoderResult
A charset coder, that is, either a decoder or an encoder, consumes bytes (or characters) from an input buffer, translates them, and writes the resulting characters (or bytes) to an output buffer. A coding process terminates for one of four categories of reasons, which are described by instances of this class:
Underflow is reported when there is no more input to be processed, or there is insufficient input and additional input is required. This condition is represented by the unique result object #UNDERFLOW , whose isUnderflow method returns true.
Overflow is reported when there is insufficient room remaining in the output buffer. This condition is represented by the unique result object #OVERFLOW , whose isOverflow method returns true.
A malformed-input error is reported when a sequence of input units is not well-formed. Such errors are described by instances of this class whose isMalformed method returns true and whose length method returns the length of the malformed sequence. There is one unique instance of this class for all malformed-input errors of a given length.
An unmappable-character error is reported when a sequence of input units denotes a character that cannot be represented in the output charset. Such errors are described by instances of this class whose isUnmappable method returns true and whose length method returns the length of the input sequence denoting the unmappable character. There is one unique instance of this class for all unmappable-character errors of a given length.
Mark - ReinholdJSR-51 - Expert Group1.4 - | Field Summary | ||
|---|---|---|
| public static final CoderResult | UNDERFLOW | Result object indicating underflow, meaning that either the input buffer has been completely consumed or, if the input buffer is not yet empty, that additional input is required. |
| public static final CoderResult | OVERFLOW | Result object indicating overflow, meaning that there is insufficient room in the output buffer. |
| Method from java.nio.charset.CoderResult Summary: |
|---|
| isError, isMalformed, isOverflow, isUnderflow, isUnmappable, length, malformedForLength, throwException, toString, unmappableForLength |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.nio.charset.CoderResult Detail: |
|---|
|
|
|
|
|
|
|
|
|
|