Package net.freeutils.charset
Class CharsetProvider
java.lang.Object
java.nio.charset.spi.CharsetProvider
net.freeutils.charset.CharsetProvider
The CharsetProvider class is a Charset Provider implementation.
- Since:
- 2005-06-10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharsetForName
(String charsetName) Retrieves a charset for the given charset name.charsets()
Creates an iterator that iterates over the charsets supported by this provider.
-
Constructor Details
-
CharsetProvider
public CharsetProvider()
-
-
Method Details
-
charsetForName
Retrieves a charset for the given charset name.- Specified by:
charsetForName
in classCharsetProvider
- 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
-
charsets
Creates an iterator that iterates over the charsets supported by this provider. This method is used in the implementation of theCharset.availableCharsets
method.- Specified by:
charsets
in classCharsetProvider
- Returns:
- The new iterator
-