Android APIs
public abstract class

CharsetProvider

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected CharsetProvider ()

Added in API level 1

Constructor for subclassing with concrete types.

Public Methods

public abstract Charset charsetForName (String charsetName)

Added in API level 1

Returns the named charset.

If the charset is unavailable the method returns null.

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

public abstract Iterator<Charset> charsets ()

Added in API level 1

Returns an iterator over all the available charsets.

Returns
Iterator<Charset> the iterator.