Class CharsetHZ

All Implemented Interfaces:
Comparable<Charset>

class CharsetHZ extends CharsetICU
  • Field Details

    • UCNV_TILDE

      private static final int UCNV_TILDE
      See Also:
    • UCNV_OPEN_BRACE

      private static final int UCNV_OPEN_BRACE
      See Also:
    • UCNV_CLOSE_BRACE

      private static final int UCNV_CLOSE_BRACE
      See Also:
    • SB_ESCAPE

      private static final byte[] SB_ESCAPE
    • DB_ESCAPE

      private static final byte[] DB_ESCAPE
    • TILDE_ESCAPE

      private static final byte[] TILDE_ESCAPE
    • fromUSubstitution

      private static final byte[] fromUSubstitution
    • gbCharset

      private CharsetMBCS gbCharset
    • isEmptySegment

      private boolean isEmptySegment
  • Constructor Details

    • CharsetHZ

      public CharsetHZ(String icuCanonicalName, String canonicalName, String[] aliases)
  • Method Details

    • newDecoder

      public CharsetDecoder newDecoder()
      Specified by:
      newDecoder in class Charset
    • newEncoder

      public CharsetEncoder newEncoder()
      Specified by:
      newEncoder in class Charset
    • getUnicodeSetImpl

      void getUnicodeSetImpl(UnicodeSet setFillIn, int which)
      Description copied from class: CharsetICU
      This follows ucnv.c method ucnv_detectUnicodeSignature() to detect the start of the stream for example U+FEFF (the Unicode BOM/signature character) that can be ignored. Detects Unicode signature byte sequences at the start of the byte stream and returns number of bytes of the BOM of the indicated Unicode charset. 0 is returned when no Unicode signature is recognized.
      Specified by:
      getUnicodeSetImpl in class CharsetICU