java.nio.charset
Class CodingErrorAction

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.nio.charset.CodingErrorAction

public class CodingErrorAction
extends Object sample code for java.lang.Object definition code for java.lang.Object

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.

Since:
1.4

Field Summary
static CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.CodingErrorAction IGNORE sample code for java.nio.charset.CodingErrorAction.IGNORE definition code for java.nio.charset.CodingErrorAction.IGNORE
          Action indicating that a coding error is to be handled by dropping the erroneous input and resuming the coding operation.
static CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.CodingErrorAction REPLACE sample code for java.nio.charset.CodingErrorAction.REPLACE definition code for java.nio.charset.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.
static CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.CodingErrorAction REPORT sample code for java.nio.charset.CodingErrorAction.REPORT definition code for java.nio.charset.CodingErrorAction.REPORT
          Action indicating that a coding error is to be reported, either by returning a CoderResult sample code for java.nio.charset.CoderResult definition code for java.nio.charset.CoderResult object or by throwing a CharacterCodingException sample code for java.nio.charset.CharacterCodingException definition code for java.nio.charset.CharacterCodingException , whichever is appropriate for the method implementing the coding process.
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.nio.charset.CodingErrorAction.toString() definition code for java.nio.charset.CodingErrorAction.toString() ()
          Returns a string describing this action.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

IGNORE sample code for java.nio.charset.CodingErrorAction.IGNORE

public static final CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.CodingErrorAction  IGNORE
Action indicating that a coding error is to be handled by dropping the erroneous input and resuming the coding operation.


REPLACE sample code for java.nio.charset.CodingErrorAction.REPLACE

public static final CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.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.


REPORT sample code for java.nio.charset.CodingErrorAction.REPORT

public static final CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.CodingErrorAction  REPORT
Action indicating that a coding error is to be reported, either by returning a CoderResult sample code for java.nio.charset.CoderResult definition code for java.nio.charset.CoderResult object or by throwing a CharacterCodingException sample code for java.nio.charset.CharacterCodingException definition code for java.nio.charset.CharacterCodingException , whichever is appropriate for the method implementing the coding process.

Method Detail

toString sample code for java.nio.charset.CodingErrorAction.toString() definition code for java.nio.charset.CodingErrorAction.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string describing this action.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
A descriptive string