Build 1.0_r1(from source)

java.nio.charset
Class CodingErrorAction

java.lang.Object
  extended by 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, namely, IGNORE, REPLACE and REPORT.


Field Summary
static CodingErrorAction IGNORE
          Indicating the action to ignore any errors.
static CodingErrorAction REPLACE
          Indicating the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered.
static CodingErrorAction REPORT
          Indicating the action to report the encountered error in an appropriate manner, for example, throw an exception or return an informative result.
 
Method Summary
 String toString()
          Returns a text description of this action indication..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IGNORE

public static final CodingErrorAction IGNORE
Indicating the action to ignore any errors.


REPLACE

public static final CodingErrorAction REPLACE
Indicating the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered.


REPORT

public static final CodingErrorAction REPORT
Indicating the action to report the encountered error in an appropriate manner, for example, throw an exception or return an informative result.

Method Detail

toString

public String toString()
Returns a text description of this action indication..

Overrides:
toString in class Object
Returns:
a text description of this action indication.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature