Package com.ibm.icu.charset
Class CharsetLMBCS
- java.lang.Object
-
- java.nio.charset.Charset
-
- com.ibm.icu.charset.CharsetICU
-
- com.ibm.icu.charset.CharsetLMBCS
-
- All Implemented Interfaces:
java.lang.Comparable<java.nio.charset.Charset>
class CharsetLMBCS extends CharsetICU
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CharsetLMBCS._LocaleLMBCSGrpMap
private static class
CharsetLMBCS._UniLMBCSGrpMap
(package private) class
CharsetLMBCS.CharsetDecoderLMBCS
(package private) class
CharsetLMBCS.CharsetEncoderLMBCS
private static class
CharsetLMBCS.UConverterDataLMBCS
-
Field Summary
Fields Modifier and Type Field Description private CharsetLMBCS.UConverterDataLMBCS
extraInfo
private byte[]
fromUSubstitution
private static CharsetLMBCS._LocaleLMBCSGrpMap[]
LocaleLMBCSGrpMap
private static java.lang.String[]
OptGroupByteToCPName
private static short
ULMBCS_123SYSTEMRANGE
private static short
ULMBCS_AMBIGUOUS_ALL
private static short
ULMBCS_AMBIGUOUS_MBCS
private static short
ULMBCS_AMBIGUOUS_SBCS
private static short
ULMBCS_C0END
private static short
ULMBCS_C1START
private static short
ULMBCS_CHARSIZE_MAX
private static short
ULMBCS_CR
private static short
ULMBCS_CTRLOFFSET
private static short
ULMBCS_DOUBLEOPTGROUP_START
private static short
ULMBCS_GRP_AR
private static short
ULMBCS_GRP_CN
private static short
ULMBCS_GRP_CTRL
private static short
ULMBCS_GRP_EXCEPT
private static short
ULMBCS_GRP_GR
private static short
ULMBCS_GRP_HE
private static short
ULMBCS_GRP_JA
private static short
ULMBCS_GRP_KO
private static short
ULMBCS_GRP_L1
private static short
ULMBCS_GRP_L2
private static short
ULMBCS_GRP_LAST
private static short
ULMBCS_GRP_RU
private static short
ULMBCS_GRP_TH
private static short
ULMBCS_GRP_TR
private static short
ULMBCS_GRP_TW
private static short
ULMBCS_GRP_UNICODE
private static short
ULMBCS_HT
private static short
ULMBCS_LF
private static short
ULMBCS_UNICODE_SIZE
private static char
ULMBCS_UNICOMPATZERO
private static CharsetLMBCS._UniLMBCSGrpMap[]
UniLMBCSGrpMap
-
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 CharsetLMBCS(java.lang.String icuCanonicalName, java.lang.String javaCanonicalName, java.lang.String[] aliases)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static short
FindLMBCSLocale(java.lang.String LocaleID)
(package private) static short
FindLMBCSUniRange(char uniChar)
(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()
private boolean
ULMBCS_AMBIGUOUS_MATCH(short agroup, short xgroup)
-
Methods inherited from class com.ibm.icu.charset.CharsetICU
contains, forNameICU, getCharset, getCompleteUnicodeSet, getNonSurrogateUnicodeSet, getUnicodeSet, isFixedWidth, isSurrogate
-
-
-
-
Field Detail
-
ULMBCS_CHARSIZE_MAX
private static final short ULMBCS_CHARSIZE_MAX
- See Also:
- Constant Field Values
-
ULMBCS_C0END
private static final short ULMBCS_C0END
- See Also:
- Constant Field Values
-
ULMBCS_C1START
private static final short ULMBCS_C1START
- See Also:
- Constant Field Values
-
ULMBCS_GRP_L1
private static final short ULMBCS_GRP_L1
- See Also:
- Constant Field Values
-
ULMBCS_GRP_GR
private static final short ULMBCS_GRP_GR
- See Also:
- Constant Field Values
-
ULMBCS_GRP_HE
private static final short ULMBCS_GRP_HE
- See Also:
- Constant Field Values
-
ULMBCS_GRP_AR
private static final short ULMBCS_GRP_AR
- See Also:
- Constant Field Values
-
ULMBCS_GRP_RU
private static final short ULMBCS_GRP_RU
- See Also:
- Constant Field Values
-
ULMBCS_GRP_L2
private static final short ULMBCS_GRP_L2
- See Also:
- Constant Field Values
-
ULMBCS_GRP_TR
private static final short ULMBCS_GRP_TR
- See Also:
- Constant Field Values
-
ULMBCS_GRP_TH
private static final short ULMBCS_GRP_TH
- See Also:
- Constant Field Values
-
ULMBCS_GRP_JA
private static final short ULMBCS_GRP_JA
- See Also:
- Constant Field Values
-
ULMBCS_GRP_KO
private static final short ULMBCS_GRP_KO
- See Also:
- Constant Field Values
-
ULMBCS_GRP_TW
private static final short ULMBCS_GRP_TW
- See Also:
- Constant Field Values
-
ULMBCS_GRP_CN
private static final short ULMBCS_GRP_CN
- See Also:
- Constant Field Values
-
ULMBCS_DOUBLEOPTGROUP_START
private static final short ULMBCS_DOUBLEOPTGROUP_START
- See Also:
- Constant Field Values
-
ULMBCS_HT
private static final short ULMBCS_HT
- See Also:
- Constant Field Values
-
ULMBCS_LF
private static final short ULMBCS_LF
- See Also:
- Constant Field Values
-
ULMBCS_CR
private static final short ULMBCS_CR
- See Also:
- Constant Field Values
-
ULMBCS_123SYSTEMRANGE
private static final short ULMBCS_123SYSTEMRANGE
- See Also:
- Constant Field Values
-
ULMBCS_GRP_CTRL
private static final short ULMBCS_GRP_CTRL
- See Also:
- Constant Field Values
-
ULMBCS_CTRLOFFSET
private static final short ULMBCS_CTRLOFFSET
- See Also:
- Constant Field Values
-
ULMBCS_GRP_EXCEPT
private static final short ULMBCS_GRP_EXCEPT
- See Also:
- Constant Field Values
-
ULMBCS_GRP_UNICODE
private static final short ULMBCS_GRP_UNICODE
- See Also:
- Constant Field Values
-
ULMBCS_UNICOMPATZERO
private static char ULMBCS_UNICOMPATZERO
-
ULMBCS_UNICODE_SIZE
private static final short ULMBCS_UNICODE_SIZE
- See Also:
- Constant Field Values
-
ULMBCS_GRP_LAST
private static final short ULMBCS_GRP_LAST
- See Also:
- Constant Field Values
-
OptGroupByteToCPName
private static final java.lang.String[] OptGroupByteToCPName
-
ULMBCS_AMBIGUOUS_SBCS
private static final short ULMBCS_AMBIGUOUS_SBCS
- See Also:
- Constant Field Values
-
ULMBCS_AMBIGUOUS_MBCS
private static final short ULMBCS_AMBIGUOUS_MBCS
- See Also:
- Constant Field Values
-
ULMBCS_AMBIGUOUS_ALL
private static final short ULMBCS_AMBIGUOUS_ALL
- See Also:
- Constant Field Values
-
UniLMBCSGrpMap
private static final CharsetLMBCS._UniLMBCSGrpMap[] UniLMBCSGrpMap
-
LocaleLMBCSGrpMap
private static final CharsetLMBCS._LocaleLMBCSGrpMap[] LocaleLMBCSGrpMap
-
extraInfo
private CharsetLMBCS.UConverterDataLMBCS extraInfo
-
fromUSubstitution
private byte[] fromUSubstitution
-
-
Method Detail
-
ULMBCS_AMBIGUOUS_MATCH
private boolean ULMBCS_AMBIGUOUS_MATCH(short agroup, short xgroup)
-
FindLMBCSUniRange
static short FindLMBCSUniRange(char uniChar)
-
FindLMBCSLocale
static short FindLMBCSLocale(java.lang.String LocaleID)
-
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
-
-