Package com.ibm.icu.charset
Class CharsetHZ
- java.lang.Object
-
- java.nio.charset.Charset
-
- com.ibm.icu.charset.CharsetICU
-
- com.ibm.icu.charset.CharsetHZ
-
- All Implemented Interfaces:
java.lang.Comparable<java.nio.charset.Charset>
class CharsetHZ extends CharsetICU
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
CharsetHZ.CharsetDecoderHZ
(package private) class
CharsetHZ.CharsetEncoderHZ
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
DB_ESCAPE
private static byte[]
fromUSubstitution
private CharsetMBCS
gbCharset
private boolean
isEmptySegment
private static byte[]
SB_ESCAPE
private static byte[]
TILDE_ESCAPE
private static int
UCNV_CLOSE_BRACE
private static int
UCNV_OPEN_BRACE
private static int
UCNV_TILDE
-
Fields inherited from class com.ibm.icu.charset.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 Constructor Description CharsetHZ(java.lang.String icuCanonicalName, java.lang.String canonicalName, java.lang.String[] aliases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
getUnicodeSetImpl(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.java.nio.charset.CharsetDecoder
newDecoder()
java.nio.charset.CharsetEncoder
newEncoder()
-
Methods inherited from class com.ibm.icu.charset.CharsetICU
contains, forNameICU, getCharset, getCompleteUnicodeSet, getNonSurrogateUnicodeSet, getUnicodeSet, isFixedWidth, isSurrogate
-
-
-
-
Field Detail
-
UCNV_TILDE
private static final int UCNV_TILDE
- See Also:
- Constant Field Values
-
UCNV_OPEN_BRACE
private static final int UCNV_OPEN_BRACE
- See Also:
- Constant Field Values
-
UCNV_CLOSE_BRACE
private static final int UCNV_CLOSE_BRACE
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
newDecoder
public java.nio.charset.CharsetDecoder newDecoder()
- Specified by:
newDecoder
in classjava.nio.charset.Charset
-
newEncoder
public java.nio.charset.CharsetEncoder newEncoder()
- Specified by:
newEncoder
in classjava.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 classCharsetICU
-
-