This class is a typesafe enumeration that defines three constants that serve as the legal argument values to the onMalformedInput( ) and onUnmappableCharacter( ) methods of CharsetDecoder and CharsetEncoder . These constants specify how malformed input and unmappable error conditions should be handled. The values are:
See CharsetDecoder for more information. public class CodingErrorAction { // No Constructor // Public Constants public static final CodingErrorAction IGNORE ; public static final CodingErrorAction REPLACE ; public static final CodingErrorAction REPORT ; // Public Methods Overriding Object public String toString ( ); } Passed ToCharsetDecoder.{implOnMalformedInput( ) , implOnUnmappableCharacter( ) , onMalformedInput( ) , onUnmappableCharacter( )} , CharsetEncoder.{implOnMalformedInput( ) , implOnUnmappableCharacter( ) , onMalformedInput( ) , onUnmappableCharacter( )} Returned ByCharsetDecoder.{malformedInputAction( ) , unmappableCharacterAction( )} , CharsetEncoder.{malformedInputAction( ) , unmappableCharacterAction( )} |