Class CharsetHZ
java.lang.Object
java.nio.charset.Charset
com.ibm.icu.charset.CharsetICU
com.ibm.icu.charset.CharsetHZ
- All Implemented Interfaces:
Comparable<Charset>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final byte[]private CharsetMBCSprivate booleanprivate static final byte[]private static final byte[]private static final intprivate static final intprivate static final intFields inherited from class CharsetICU
codepage, conversionType, hasFromUnicodeFallback, hasToUnicodeFallback, icuCanonicalName, maxBytesPerChar, maxCharsPerByte, minBytesPerChar, name, options, platform, ROUNDTRIP_AND_FALLBACK_SET, ROUNDTRIP_SET, subChar, subChar1, subCharLen, unicodeMask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidgetUnicodeSetImpl(UnicodeSet setFillIn, int which) 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.Methods inherited from class CharsetICU
contains, forNameICU, getCharset, getCompleteUnicodeSet, getNonSurrogateUnicodeSet, getUnicodeSet, isFixedWidth, isSurrogateMethods inherited from class Charset
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString
-
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
-
isEmptySegment
private boolean isEmptySegment
-
-
Constructor Details
-
CharsetHZ
-
-
Method Details
-
newDecoder
- Specified by:
newDecoderin classCharset
-
newEncoder
- Specified by:
newEncoderin classCharset
-
getUnicodeSetImpl
Description copied from class:CharsetICUThis 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:
getUnicodeSetImplin classCharsetICU
-