Android
java.nio.charset
public class

java.nio.charset.CodingErrorAction

java.lang.Object
java.nio.charset.CodingErrorAction

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.

Summary

Constants

      Value  
CodingErrorAction  IGNORE  Indicating the action to ignore any errors.     
CodingErrorAction  REPLACE  Indicating the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered.     
CodingErrorAction  REPORT  Indicating the action to report the encountered error in an appropriate manner, for example, throw an exception or return an informative result.     

Public Methods

          String  toString()
Returns a text description of this action indication..
Methods inherited from class java.lang.Object

Details

Constants

public static final CodingErrorAction IGNORE

Indicating the action to ignore any errors.

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.

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.

Public Methods

public String toString()

Returns a text description of this action indication..

Returns

  • a text description of this action indication.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48