Skip to content

Most visited

Recently visited

navigation
Added in API level 1

CharsetProvider

public abstract class CharsetProvider
extends Object

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.

Inherited methods

From class java.lang.Object

Protected constructors

CharsetProvider

Added in API level 1
CharsetProvider ()

Constructor for subclassing with concrete types.

Public methods

charsetForName

Added in API level 1
Charset charsetForName (String charsetName)

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.

charsets

Added in API level 1
Iterator<Charset> charsets ()

Returns an iterator over all the available charsets.

Returns
Iterator<Charset> the iterator.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.