com.ibm.icu4jni.charset
Class CharsetProviderICU

java.lang.Object
  extended byjava.nio.charset.spi.CharsetProvider
      extended bycom.ibm.icu4jni.charset.CharsetProviderICU

public final class CharsetProviderICU
extends java.nio.charset.spi.CharsetProvider


Nested Class Summary
protected  class CharsetProviderICU.CharsetIterator
          Class that implements the iterator for charsets
 
Constructor Summary
CharsetProviderICU()
          Constructs a CharsetProviderICU object
 
Method Summary
 java.nio.charset.Charset charsetForName(java.lang.String charsetName)
          Constructs a charset for the given charset name
 java.util.Iterator charsets()
          Returns an iterator for the available charsets
 void putCharsets(java.util.Map map)
          Adds an entry to the given map whose key is the charset's canonical name and whose value is the charset itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharsetProviderICU

public CharsetProviderICU()
Constructs a CharsetProviderICU object

Status:
Stable ICU 2.4.
Method Detail

charsetForName

public final java.nio.charset.Charset charsetForName(java.lang.String charsetName)
Constructs a charset for the given charset name

Parameters:
charsetName - charset name
Returns:
charset objet for the given charset name
Status:
Stable ICU 2.4.

putCharsets

public final void putCharsets(java.util.Map map)
Adds an entry to the given map whose key is the charset's canonical name and whose value is the charset itself.

Parameters:
map - a map to receive charset objects and names
Status:
Stable ICU 2.4.

charsets

public final java.util.Iterator charsets()
Returns an iterator for the available charsets

Returns:
Iterator the charset name iterator
Status:
Stable ICU 2.4.