Class CharsetUTF32

    • Field Detail

      • fromUSubstitution_BE

        private static final byte[] fromUSubstitution_BE
      • fromUSubstitution_LE

        private static final byte[] fromUSubstitution_LE
      • BOM_BE

        private static final byte[] BOM_BE
      • BOM_LE

        private static final byte[] BOM_LE
      • isEndianSpecified

        private boolean isEndianSpecified
      • isBigEndian

        private boolean isBigEndian
      • endianXOR

        private int endianXOR
      • bom

        private byte[] bom
      • fromUSubstitution

        private byte[] fromUSubstitution
    • Constructor Detail

      • CharsetUTF32

        public CharsetUTF32​(java.lang.String icuCanonicalName,
                            java.lang.String javaCanonicalName,
                            java.lang.String[] aliases)
    • Method Detail

      • newDecoder

        public java.nio.charset.CharsetDecoder newDecoder()
        Specified by:
        newDecoder in class java.nio.charset.Charset
      • newEncoder

        public java.nio.charset.CharsetEncoder newEncoder()
        Specified by:
        newEncoder in class java.nio.charset.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