public class Charsets
extends java.lang.Object
Charset
provided by the Java libraries,
this class restricts the set of available charset to the most common ones (ordered by frequency of use)
and it provides consistent and beautified labels.Constructor and Description |
---|
Charsets() |
Modifier and Type | Method and Description |
---|---|
static java.nio.charset.Charset |
getCharsetForName(java.lang.String name)
Returns a charset for the given name
|
static java.lang.String |
getNameOfDefaultCharset()
Returns the system's default charset
|
static java.lang.String[] |
getNamesOfAvailableCharsets()
Returns a list of available charsets.
|
public static java.nio.charset.Charset getCharsetForName(java.lang.String name)
name
- public static java.lang.String getNameOfDefaultCharset()
public static java.lang.String[] getNamesOfAvailableCharsets()