public class CharsetSupport extends Object
| Constructor and Description |
|---|
CharsetSupport() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharset() |
static Charset |
getCharsetInstance() |
static String |
getDefaultCharset() |
static boolean |
isStringEquivalent()
Returns whether the current charset's byte representation of a string
is equivalent (as unsigned values) to the string characters themselves.
|
static boolean |
isStringEquivalent(Charset charset)
Returns whether the given charset's byte representation of a string
is equivalent (as unsigned values) to the string characters themselves.
|
static void |
setCharset(String charset) |
static void |
setDefaultCharset() |
static String |
validate(String charset) |
public static String getDefaultCharset()
public static boolean isStringEquivalent(Charset charset)
charset - a charsetpublic static boolean isStringEquivalent()
public static void setCharset(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static void setDefaultCharset()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String getCharset()
public static Charset getCharsetInstance()
public static String validate(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2025. All rights reserved.