Build 1.0_r1(from source)

java.nio.charset.spi
Class CharsetProvider

java.lang.Object
  extended by java.nio.charset.spi.CharsetProvider

public abstract class CharsetProvider
extends Object

The service provider class for character sets.


Constructor Summary
protected CharsetProvider()
          Constructor for subclassing with concrete types.
 
Method Summary
abstract  Charset charsetForName(String charsetName)
          Returns the named charset.
abstract  Iterator<Charset> charsets()
          Returns an iterator over all the available charsets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharsetProvider

protected CharsetProvider()
Constructor for subclassing with concrete types.

Throws:
SecurityException - if there is a security manager installed that does not permit the runtime permission labeled "charsetProvider".
Method Detail

charsets

public abstract Iterator<Charset> charsets()
Returns an iterator over all the available charsets.

Returns:
the iterator.

charsetForName

public abstract Charset charsetForName(String charsetName)
Returns the named charset.

If the charset is unavailable the method returns null.

Parameters:
charsetName - the canonical or alias name of a character set.
Returns:
the charset, or null if unavailable.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature