Skip to content

Most visited

Recently visited

navigation
Added in API level 1

CodingErrorAction

public class CodingErrorAction
extends Object

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: IGNORE, REPLACE and REPORT.

Summary

Fields

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.

Public methods

String toString()

Returns a text description of this action indication.

Inherited methods

From class java.lang.Object

Fields

IGNORE

Added in API level 1
CodingErrorAction IGNORE

Denotes the action to ignore any errors.

REPLACE

Added in API level 1
CodingErrorAction REPLACE

Denotes the action to fill in the output with a replacement character when malformed input or an unmappable character is encountered.

REPORT

Added in API level 1
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.

Public methods

toString

Added in API level 1
String toString ()

Returns a text description of this action indication.

Returns
String a text description of this action indication.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.