Top Description Fields Constructors Methods
org.jcodings.spi

public Class Charsets

extends CharsetProvider
Class Inheritance
Imports
java.nio.charset.Charset, java.util.Collections, .Iterator, .List

An SPI character set provider for ISO-8859-16.

Field Summary

Modifier and TypeField and Description
private static final List<Charset>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Charset
charsetForName(String
The name of the requested charset; may be either a canonical name or an alias
charsetName
)

Implements abstract java.nio.charset.spi.CharsetProvider.charsetForName.

Retrieves a charset for the given charset name.
public Iterator<Charset>
charsets()

Implements abstract java.nio.charset.spi.CharsetProvider.charsets.

Creates an iterator that iterates over the charsets supported by this provider.

Field Detail

charsetsback to summary
private static final List<Charset> charsets

Constructor Detail

Charsetsback to summary
public Charsets()

Method Detail

charsetForNameback to summary
public Charset charsetForName(String charsetName)

Implements abstract java.nio.charset.spi.CharsetProvider.charsetForName.

Doc from java.nio.charset.spi.CharsetProvider.charsetForName.

Retrieves a charset for the given charset name.

Parameters
charsetName:String

The name of the requested charset; may be either a canonical name or an alias

Returns:Charset

A charset object for the named charset, or null if the named charset is not supported by this provider

charsetsback to summary
public Iterator<Charset> charsets()

Implements abstract java.nio.charset.spi.CharsetProvider.charsets.

Doc from java.nio.charset.spi.CharsetProvider.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:Iterator<Charset>

The new iterator