Top Description Fields Constructors Methods
java.nio.charset

public Class CodingErrorAction

extends Object
Class Inheritance

A typesafe enumeration for coding-error actions.

Instances of this class are used to specify how malformed-input and unmappable-character errors are to be handled by charset decoders and encoders.

Authors
Mark Reinhold, JSR-51 Expert Group
Since
1.4

Field Summary

Modifier and TypeField and Description
public static final CodingErrorAction
IGNORE

Action indicating that a coding error is to be handled by dropping the erroneous input and resuming the coding operation.

private String
public static final CodingErrorAction
REPLACE

Action indicating that a coding error is to be handled by dropping the erroneous input, appending the coder's replacement value to the output buffer, and resuming the coding operation.

public static final CodingErrorAction
REPORT

Action indicating that a coding error is to be reported, either by returning a CoderResult object or by throwing a CharacterCodingException, whichever is appropriate for the method implementing the coding process.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

A descriptive string
toString
()

Overrides java.lang.Object.toString.

Returns a string describing this action.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

IGNOREback to summary
public static final CodingErrorAction IGNORE

Action indicating that a coding error is to be handled by dropping the erroneous input and resuming the coding operation.

nameback to summary
private String name
REPLACEback to summary
public static final CodingErrorAction REPLACE

Action indicating that a coding error is to be handled by dropping the erroneous input, appending the coder's replacement value to the output buffer, and resuming the coding operation.

REPORTback to summary
public static final CodingErrorAction REPORT

Action indicating that a coding error is to be reported, either by returning a CoderResult object or by throwing a CharacterCodingException, whichever is appropriate for the method implementing the coding process.

Constructor Detail

CodingErrorActionback to summary
private CodingErrorAction(String name)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string describing this action.

Returns:String

A descriptive string