Package java.nio.charset.spi
Class CharsetProvider
java.lang.Object
java.nio.charset.spi.CharsetProvider
public abstract class CharsetProvider extends Object
The service provider class for character sets.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCharsetProvider()Constructor for subclassing with concrete types. -
Method Summary
-
Constructor Details
-
CharsetProvider
protected CharsetProvider()Constructor for subclassing with concrete types.
-
-
Method Details
-
charsets
Returns an iterator over all the available charsets.- Returns:
- the iterator.
-
charsetForName
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
nullif unavailable.
-