to top
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 ()

Since: API Level 1

Constructor for subclassing with concrete types.

Public Methods

public abstract Charset charsetForName (String charsetName)

Since: 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 ()

Since: API Level 1

Returns an iterator over all the available charsets.

Returns
  • the iterator.