public class

FastCharsetProvider

extends CharsetProvider
java.lang.Object
   ↳ java.nio.charset.spi.CharsetProvider
     ↳ sun.nio.cs.FastCharsetProvider

Class Overview

Abstract base class for fast charset providers.

Summary

Protected Constructors
FastCharsetProvider(String pp, Map<StringString> am, Map<StringString> cm, Map<StringCharset> c)
Public Methods
final Charset charsetForName(String charsetName)
Retrieves a charset for the given charset name.
final Iterator<Charset> charsets()
Creates an iterator that iterates over the charsets supported by this provider.
[Expand]
Inherited Methods
From class java.nio.charset.spi.CharsetProvider
From class java.lang.Object

Protected Constructors

protected FastCharsetProvider (String pp, Map<StringString> am, Map<StringString> cm, Map<StringCharset> c)

Public Methods

public final Charset charsetForName (String charsetName)

Retrieves a charset for the given charset name.

Parameters
charsetName The name of the requested charset; may be either a canonical name or an alias
Returns
  • A charset object for the named charset, or null if the named charset is not supported by this provider

public final Iterator<Charset> charsets ()

Creates an iterator that iterates over the charsets supported by this provider. This method is used in the implementation of the Charset.availableCharsets method.

Returns
  • The new iterator