Android
java.nio.charset.spi
public abstract class

java.nio.charset.spi.CharsetProvider

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

The service provider class for character sets.

Summary

Protected Constructors

            CharsetProvider()
Constructor for subclassing with concrete types.

Public Methods

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

Details

Protected Constructors

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".

Public Methods

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.

public abstract Iterator<Charset> charsets()

Returns an iterator over all the available charsets.

Returns

  • the iterator.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48