| java.lang.Object | |
| ↳ | java.nio.charset.CoderResult |
Used to indicate the result of encoding/decoding. There are four types of results:
CoderResult.UNDERFLOW. CoderResult.OVERFLOW. CoderResult.malformedForLength(int) with the length of the malformed-input. CoderResult.unmappableForLength(int) with the input sequence size indicating the identity of the unmappable character. | Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
OVERFLOW | Result object used to indicate that the output buffer does not have enough space available to store the result of the encoding/decoding. | |||||||||
|
|
UNDERFLOW | Result object indicating that there is insufficient data in the encoding/decoding buffer or that additional data is required. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Returns true if this result represents a malformed-input error or an unmappable-character error.
|
||||||||||
|
|
Returns true if this result represents a malformed-input error.
|
||||||||||
|
|
Returns true if this result is an overflow condition.
|
||||||||||
|
|
Returns true if this result is an underflow condition.
|
||||||||||
|
|
Returns true if this result represents an unmappable-character error.
|
||||||||||
|
|
Gets the length of the erroneous input.
|
||||||||||
|
|
Gets a
CoderResult object indicating a malformed-input error.
|
||||||||||
|
|
Throws an exception corresponding to this coder result.
|
||||||||||
|
|
Returns a text description of this result.
|
||||||||||
|
|
Gets a
CoderResult object indicating an unmappable character error.
|
||||||||||
| [Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
|||||||||||
Result object used to indicate that the output buffer does not have enough space available to store the result of the encoding/decoding.
Result object indicating that there is insufficient data in the encoding/decoding buffer or that additional data is required.
Returns true if this result represents a malformed-input error or an unmappable-character error.
Returns true if this result represents a malformed-input error.
Returns true if this result is an overflow condition.
Returns true if this result is an underflow condition.
Returns true if this result represents an unmappable-character error.
Gets the length of the erroneous input. The length is only meaningful to a malformed-input error or an unmappable character error.
| UnsupportedOperationException | if this result is an overflow or underflow. |
|---|
Gets a CoderResult object indicating a malformed-input error.
| length | the length of the malformed-input. |
|---|
CoderResult object indicating a malformed-input error.| IllegalArgumentException | if length is non-positive. |
|---|
Throws an exception corresponding to this coder result.
| BufferUnderflowException | in case this is an underflow. |
|---|---|
| BufferOverflowException | in case this is an overflow. |
| UnmappableCharacterException | in case this is an unmappable-character error. |
| MalformedInputException | in case this is a malformed-input error. |
| CharacterCodingException | the default exception. |
Returns a text description of this result.
Gets a CoderResult object indicating an unmappable character error.
| length | the length of the input unit sequence denoting the unmappable character. |
|---|
CoderResult object indicating an unmappable character error.| IllegalArgumentException | if length is non-positive. |
|---|