| Modifier and Type | Method and Description |
|---|---|
static String |
getDisplayName(Charset charset)
Returns the human-readable name of the given charset.
|
static List<Charset> |
getSupportedCharsets(Locale locale)
Returns the list of charsets that support encoding and decoding strings in the given language and script.
|
public static String getDisplayName(Charset charset)
NOTE: This method exists because Charset#displayName() is a synonym for Charset#name() in charsets provided by Oracle.
IllegalArgumentException - if charset is nullpublic static List<Charset> getSupportedCharsets(Locale locale)
NOTE: If any of the returned charsets shall be used for encoding, make sure its Charset.canEncode() method returns true.
IllegalArgumentException - if locale is null