public class CharsetProvider
extends java.nio.charset.spi.CharsetProvider
Constructor and Description |
---|
CharsetProvider() |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
charsetForName(java.lang.String charsetName)
Retrieves a charset for the given charset name.
|
java.util.Iterator |
charsets()
Creates an iterator that iterates over the charsets supported by this
provider.
|
public java.nio.charset.Charset charsetForName(java.lang.String charsetName)
charsetForName
in class java.nio.charset.spi.CharsetProvider
charsetName
- The name of the requested charset; may be either
a canonical name or an aliaspublic java.util.Iterator charsets()
Charset.availableCharsets
method. charsets
in class java.nio.charset.spi.CharsetProvider