com.evanmclean.evlib.charset
Class Charsets
java.lang.Object
com.evanmclean.evlib.charset.Charsets
public final class Charsets
- extends Object
Defines constants for the standard set of Charset
s that are supported
by every java platform implementation.
- Author:
- Evan McLean McLean Computer Services (see the
overview for copyright and licensing.)
Method Summary |
static Charset |
get(String name)
Returns a charset object for the named charset. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USASCII
public static final Charset USASCII
ISO88591
public static final Charset ISO88591
ISOLATIN1
public static final Charset ISOLATIN1
UTF8
public static final Charset UTF8
UTF16
public static final Charset UTF16
UTF16BE
public static final Charset UTF16BE
UTF16LE
public static final Charset UTF16LE
USASCII_NAME
public static final String USASCII_NAME
ISO88591_NAME
public static final String ISO88591_NAME
ISOLATIN1_NAME
public static final String ISOLATIN1_NAME
UTF8_NAME
public static final String UTF8_NAME
UTF16_NAME
public static final String UTF16_NAME
UTF16BE_NAME
public static final String UTF16BE_NAME
UTF16LE_NAME
public static final String UTF16LE_NAME
get
public static Charset get(String name)
- Returns a charset object for the named charset.
- Parameters:
name
-
- Returns:
- The matching charset.
- Throws:
IllegalCharsetNameException
- If the given charset name is illegal .
IllegalArgumentException
- If the given charsetName is null.
UnsupportedCharsetException
- If no support for the named charset is available in this instance
of the Java virtual machine.