com.evanmclean.evlib.charset
Class Charsets

java.lang.Object
  extended by com.evanmclean.evlib.charset.Charsets

public final class Charsets
extends Object

Defines constants for the standard set of Charsets that are supported by every java platform implementation.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Field Summary
static Charset ISO88591
           
static String ISO88591_NAME
           
static Charset ISOLATIN1
           
static String ISOLATIN1_NAME
           
static Charset USASCII
           
static String USASCII_NAME
           
static Charset UTF16
           
static String UTF16_NAME
           
static Charset UTF16BE
           
static String UTF16BE_NAME
           
static Charset UTF16LE
           
static String UTF16LE_NAME
           
static Charset UTF8
           
static String UTF8_NAME
           
 
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
 

Field Detail

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
Method Detail

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.