| |
|
| java.lang.Object com.ibm.icu.charset.CharsetCallback
CharsetCallback | class CharsetCallback (Code) | | Callback API for CharsetICU API
CharsetCallback class defines some error behaviour functions called
by CharsetDecoderICU and CharsetEncoderICU. The class also provides
the facility by which clients can write their own callbacks.
These functions, although public, should NEVER be called directly.
They should be used as parameters to the onUmappableCharacter() and
onMalformedInput() methods, to set the behaviour of a converter
when it encounters UNMAPPED/INVALID sequences.
Currently the only way to set callbacks is by using CodingErrorAction.
In the future we will provide set methods on CharsetEncoder and CharsetDecoder
that will accept CharsetCallback fields.
|
Inner Class :public interface Decoder | |
Inner Class :public interface Encoder | |
ESCAPE_C | final static String ESCAPE_C(Code) | | FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to C (\\uXXXX \\UXXXXXXXX)
TO_U_CALLBACK_ESCAPE option to escape the character value accoding to C (\\xXXXX)
|
ESCAPE_ICU | final static String ESCAPE_ICU(Code) | | FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to ICU (%UXXXX)
|
ESCAPE_JAVA | final static String ESCAPE_JAVA(Code) | | FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to JAVA (\\uXXXX)
|
ESCAPE_UNICODE | final static String ESCAPE_UNICODE(Code) | | FROM_U_CALLBACK_ESCAPE context option to escape teh code unit according to Unicode (U+XXXXX)
|
ESCAPE_XML_DEC | final static String ESCAPE_XML_DEC(Code) | | FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Decimal escape \htmlonly(&#DDDD;)\endhtmlonly
TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Decimal escape \htmlonly(&#DDDD;)\endhtmlonly
|
ESCAPE_XML_HEX | final static String ESCAPE_XML_HEX(Code) | | FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Hex escape \htmlonly(&#xXXXX;)\endhtmlonly
TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Hex escape \htmlonly(&#xXXXX;)\endhtmlonly
|
FROM_U_CALLBACK_SKIP | final public static Encoder FROM_U_CALLBACK_SKIP(Code) | | Skip callback
|
FROM_U_CALLBACK_STOP | final public static Encoder FROM_U_CALLBACK_STOP(Code) | | Skip callback
|
FROM_U_CALLBACK_SUBSTITUTE | final public static Encoder FROM_U_CALLBACK_SUBSTITUTE(Code) | | Skip callback
|
SKIP_STOP_ON_ILLEGAL | final static String SKIP_STOP_ON_ILLEGAL(Code) | | FROM_U, TO_U context options for skip callback
|
SUB_STOP_ON_ILLEGAL | final static String SUB_STOP_ON_ILLEGAL(Code) | | FROM_U, TO_U context options for sub callback
|
TO_U_CALLBACK_SKIP | final public static Decoder TO_U_CALLBACK_SKIP(Code) | | Skip callback
|
TO_U_CALLBACK_STOP | final public static Decoder TO_U_CALLBACK_STOP(Code) | | Skip callback
|
TO_U_CALLBACK_SUBSTITUTE | final public static Decoder TO_U_CALLBACK_SUBSTITUTE(Code) | | Skip callback
|
|
|
|