Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 the canonical or alias name of a character set.
Returns
  • 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
  • the iterator.