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

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.