| |
|
| java.lang.Object java.nio.charset.CodingErrorAction
CodingErrorAction | public class CodingErrorAction (Code) | | A typesafe enumeration for coding-error actions.
Instances of this class are used to specify how malformed-input and
unmappable-character errors are to be handled by charset decoders and encoders.
author: Mark Reinhold author: JSR-51 Expert Group version: 1.13, 07/05/05 since: 1.4 |
Field Summary | |
final public static CodingErrorAction | IGNORE Action indicating that a coding error is to be handled by dropping the
erroneous input and resuming the coding operation. | final public static CodingErrorAction | REPLACE Action indicating that a coding error is to be handled by dropping the
erroneous input, appending the coder's replacement value to the output
buffer, and resuming the coding operation. | final public static CodingErrorAction | REPORT Action indicating that a coding error is to be reported, either by
returning a
CoderResult object or by throwing a
CharacterCodingException , whichever is appropriate for the method
implementing the coding process. |
Method Summary | |
public String | toString() Returns a string describing this action. |
IGNORE | final public static CodingErrorAction IGNORE(Code) | | Action indicating that a coding error is to be handled by dropping the
erroneous input and resuming the coding operation.
|
REPLACE | final public static CodingErrorAction REPLACE(Code) | | Action indicating that a coding error is to be handled by dropping the
erroneous input, appending the coder's replacement value to the output
buffer, and resuming the coding operation.
|
REPORT | final public static CodingErrorAction REPORT(Code) | | Action indicating that a coding error is to be reported, either by
returning a
CoderResult object or by throwing a
CharacterCodingException , whichever is appropriate for the method
implementing the coding process.
|
toString | public String toString()(Code) | | Returns a string describing this action.
A descriptive string |
|
|
|