Package com.adobe.agl.charset
Class CharsetProviderICU
java.lang.Object
java.nio.charset.spi.CharsetProvider
com.adobe.agl.charset.CharsetProviderICU
A concrete subclass of CharsetProvider for loading and providing charset converters
in ICU.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Charset
charsetForName
(String charsetName) Constructs a charset for the given charset name.final Iterator
charsets()
Returns an iterator for the available charsets.static final String[]
Deprecated.This API is ICU internal only.static final Object[]
Deprecated.This API is ICU internal only.static final String
Deprecated.This API is ICU internal only.static String
getJavaCanonicalName
(String charsetName) Deprecated.This API is ICU internal only.
-
Constructor Details
-
CharsetProviderICU
public CharsetProviderICU()Default constructor
-
-
Method Details
-
charsetForName
Constructs a charset for the given charset name. Implements the abstract method of super class.- Specified by:
charsetForName
in classCharsetProvider
- Parameters:
charsetName
- charset name- Returns:
- charset objet for the given charset name, null if unsupported
-
getICUCanonicalName
Deprecated.This API is ICU internal only.Gets the canonical name of the converter as defined by Java- Parameters:
enc
- converter name- Returns:
- canonical name of the converter
- Throws:
UnsupportedCharsetException
-
getJavaCanonicalName
Deprecated.This API is ICU internal only.Gets the canonical name of the converter as defined by Java- Parameters:
charsetName
- converter name- Returns:
- canonical name of the converter
-
charsets
Returns an iterator for the available charsets. Implements the abstract method of super class.- Specified by:
charsets
in classCharsetProvider
- Returns:
- Iterator the charset name iterator
-
getAvailableNames
Deprecated.This API is ICU internal only.Gets the canonical names of available converters- Returns:
- Object[] names as an object array
-
getAllNames
Deprecated.This API is ICU internal only.Return all names available- Returns:
- String[] an arrya of all available names
-