Package com.ibm.icu.charset
Class CharsetCallback
java.lang.Object
com.ibm.icu.charset.CharsetCallback
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Decoder Callback interfacestatic interface
Encoder Callback interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CharsetCallback.Encoder
Write escape callbackstatic final CharsetCallback.Encoder
Skip callbackstatic final CharsetCallback.Encoder
Stop callbackstatic final CharsetCallback.Encoder
Write substitute callbackstatic final CharsetCallback.Decoder
Write escape callbackstatic final CharsetCallback.Decoder
Skip callbackstatic final CharsetCallback.Decoder
Stop callbackstatic final CharsetCallback.Decoder
Write substitute callback -
Method Summary
-
Field Details
-
FROM_U_CALLBACK_SKIP
Skip callback -
TO_U_CALLBACK_SKIP
Skip callback -
FROM_U_CALLBACK_SUBSTITUTE
Write substitute callback -
TO_U_CALLBACK_SUBSTITUTE
Write substitute callback -
FROM_U_CALLBACK_STOP
Stop callback -
TO_U_CALLBACK_STOP
Stop callback -
FROM_U_CALLBACK_ESCAPE
Write escape callback -
TO_U_CALLBACK_ESCAPE
Write escape callback
-