Interface UConverterConstants.UConverterCallbackReason

Enclosing interface:
UConverterConstants

public static interface UConverterConstants.UConverterCallbackReason
The process condition code to be used with the callbacks. Codes which are greater than IRREGULAR should be passed on to any chained callbacks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    < Called when the converter is closed.
    static final int
    < The callback is called with this reason when a 'reset' has occurred.
    static final int
    < The code point is unassigned.
    static final int
    < The code point is illegal.
    static final int
    < The codepoint is not a regular sequence in the encoding.
    static final int
     
  • Field Details

    • UNASSIGNED

      static final int UNASSIGNED
      See Also:
    • ILLEGAL

      static final int ILLEGAL
      < The code point is unassigned. The error code U_INVALID_CHAR_FOUND will be set.
      See Also:
    • IRREGULAR

      static final int IRREGULAR
      < The code point is illegal. For example, \\x81\\x2E is illegal in SJIS because \\x2E is not a valid trail byte for the \\x81 lead byte. Also, starting with Unicode 3.0.1, non-shortest byte sequences in UTF-8 (like \\xC1\\xA1 instead of \\x61 for U+0061) are also illegal, not just irregular. The error code U_ILLEGAL_CHAR_FOUND will be set.
      See Also:
    • RESET

      static final int RESET
      < The codepoint is not a regular sequence in the encoding. For example, \\xED\\xA0\\x80..\\xED\\xBF\\xBF are irregular UTF-8 byte sequences for single surrogate code points. The error code U_INVALID_CHAR_FOUND will be set.
      See Also:
    • CLOSE

      static final int CLOSE
      < The callback is called with this reason when a 'reset' has occurred. Callback should reset all state.
      See Also:
    • CLONE

      static final int CLONE
      < Called when the converter is closed. The callback should release any allocated memory.
      See Also: