Package java.nio.charset
Class CodingErrorAction
java.lang.Object
java.nio.charset.CodingErrorAction
public class CodingErrorAction extends Object
Used to indicate what kind of actions to take in case of encoding/decoding
errors. Currently three actions are defined:
IGNORE, REPLACE
and REPORT.-
Field Summary
Fields Modifier and Type Field Description static CodingErrorActionIGNOREDenotes the action to ignore any errors.static CodingErrorActionREPLACEDenotes the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered.static CodingErrorActionREPORTDenotes the action to report the encountered error in an appropriate manner, for example to throw an exception or return an informative result. -
Method Summary
-
Field Details
-
IGNORE
Denotes the action to ignore any errors. -
REPLACE
Denotes the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered. -
REPORT
Denotes the action to report the encountered error in an appropriate manner, for example to throw an exception or return an informative result.
-
-
Method Details