FileDocCategorySizeDatePackage
CodingErrorAction.javaAPI DocAndroid 1.5 API2385Wed May 06 22:41:04 BST 2009java.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: {@code IGNORE}, {@code REPLACE} and {@code REPORT}.
since
Android 1.0

Fields Summary
public static final CodingErrorAction
IGNORE
Denotes the action to ignore any errors.
public static final CodingErrorAction
REPLACE
Denotes the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered.
public static final CodingErrorAction
REPORT
Denotes the action to report the encountered error in an appropriate manner, for example to throw an exception or return an informative result.
private String
action
Constructors Summary
private CodingErrorAction(String action)


    /*
     * Can't instantiate outside.
     */
       
        this.action = action;
    
Methods Summary
public java.lang.StringtoString()
Returns a text description of this action indication.

return
a text description of this action indication.
since
Android 1.0

        return "Action: " + this.action; //$NON-NLS-1$