| java.lang.Object java.nio.charset.Charset com.ibm.icu.charset.CharsetICU
All known Subclasses: com.ibm.icu.charset.CharsetUTF16, com.ibm.icu.charset.CharsetASCII, com.ibm.icu.charset.Charset88591, com.ibm.icu.charset.CharsetUTF32, com.ibm.icu.charset.CharsetMBCS, com.ibm.icu.charset.CharsetUTF16LE, com.ibm.icu.charset.CharsetUTF8, com.ibm.icu.charset.CharsetUTF32LE,
CharsetICU | abstract public class CharsetICU extends Charset (Code) | | A subclass of java.nio.Charset for providing implementation of ICU's charset converters.
This API is used to convert codepage or character encoded data to and
from UTF-16. You can open a converter with
Charset.forName and
CharsetICU.forNameICU . With that
converter, you can get its properties, set options, convert your data.
Since many software programs recogize different converter names for
different types of converters, there are other functions in this API to
iterate over the converter aliases.
|
conversionType | byte conversionType(Code) | | |
hasFromUnicodeFallback | byte hasFromUnicodeFallback(Code) | | |
hasToUnicodeFallback | byte hasToUnicodeFallback(Code) | | |
maxBytesPerChar | int maxBytesPerChar(Code) | | |
maxCharsPerByte | float maxCharsPerByte(Code) | | |
minBytesPerChar | int minBytesPerChar(Code) | | |
subCharLen | byte subCharLen(Code) | | |
unicodeMask | short unicodeMask(Code) | | |
useFallback | boolean useFallback(Code) | | |
CharsetICU | protected CharsetICU(String icuCanonicalName, String canonicalName, String[] aliases)(Code) | | Parameters: icuCanonicalName - Parameters: canonicalName - Parameters: aliases - |
contains | public boolean contains(Charset cs)(Code) | | Ascertains if a charset is a sub set of this charset
Implements the abstract method of super class.
Parameters: cs - charset to test true if the given charset is a subset of this charset |
forNameICU | public static Charset forNameICU(String charsetName) throws IllegalCharsetNameException, UnsupportedCharsetException(Code) | | Returns a charset object for the named charset.
This method gurantee that ICU charset is returned when
available. If the ICU charset provider does not support
the specified charset, then try other charset providers
including the standard Java charset provider.
Parameters: charsetName - The name of the requested charset,may be either a canonical name or an alias A charset object for the named charset throws: IllegalCharsetNameException - If the given charset nameis illegal throws: UnsupportedCharsetException - If no support for thenamed charset is available in this instance of th Javavirtual machine |
getDefaultCharsetName | final static String getDefaultCharsetName()(Code) | | Returns the default charset name
|
isFromUUseFallback | final boolean isFromUUseFallback(int c)(Code) | | Use fallbacks from Unicode to codepage when useFallback or for private-use code points
Parameters: c - A codepoint |
isPrivateUse | final static boolean isPrivateUse(int c)(Code) | | |
isSurrogate | final static boolean isSurrogate(int c)(Code) | | |
isToUUseFallback | final boolean isToUUseFallback()(Code) | | Always use fallbacks from codepage to Unicode?
|
|
|