com.ibm.icu4jni.charset
Class CharsetICU

java.lang.Object
  extended byjava.nio.charset.Charset
      extended bycom.ibm.icu4jni.charset.CharsetICU
All Implemented Interfaces:
java.lang.Comparable

public final class CharsetICU
extends java.nio.charset.Charset


Constructor Summary
protected CharsetICU(java.lang.String canonicalName, java.lang.String icuCanonName, java.lang.String[] aliases)
          Constructor to create a the CharsetICU object
 
Method Summary
 boolean contains(java.nio.charset.Charset cs)
          Ascertains if a charset is a sub set of this charset
 java.nio.charset.CharsetDecoder newDecoder()
          Returns a new decoder instance of this charset object
 java.nio.charset.CharsetEncoder newEncoder()
          Returns a new encoder object of the charset
 
Methods inherited from class java.nio.charset.Charset
aliases, availableCharsets, canEncode, compareTo, decode, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharsetICU

protected CharsetICU(java.lang.String canonicalName,
                     java.lang.String icuCanonName,
                     java.lang.String[] aliases)
Constructor to create a the CharsetICU object

Parameters:
canonicalName - the canonical name as a string
aliases - the alias set as an array of strings
Status:
Stable ICU 2.4.
Method Detail

newDecoder

public java.nio.charset.CharsetDecoder newDecoder()
Returns a new decoder instance of this charset object

Returns:
a new decoder object
Status:
Stable ICU 2.4.

newEncoder

public java.nio.charset.CharsetEncoder newEncoder()
Returns a new encoder object of the charset

Returns:
a new encoder
Status:
Stable ICU 2.4.

contains

public boolean contains(java.nio.charset.Charset cs)
Ascertains if a charset is a sub set of this charset

Parameters:
cs - charset to test
Returns:
true if the given charset is a subset of this charset
Status:
Stable ICU 2.4 //CSDL: major changes by Jack.