org.restlet.gwt.data
Class CharacterSet

java.lang.Object
  extended by org.restlet.gwt.data.Metadata
      extended by org.restlet.gwt.data.CharacterSet

public final class CharacterSet
extends Metadata

Character set used to encode characters in textual representations.

Author:
Jerome Louvel

Field Summary
static CharacterSet ALL
          All character sets acceptable.
static CharacterSet ISO_8859_1
          The ISO/IEC 8859-1 or Latin 1 character set.
static CharacterSet US_ASCII
          The US-ASCII character set.
static CharacterSet UTF_16
          The UTF-16 character set.
static CharacterSet UTF_8
          The UTF-8 character set.
 
Constructor Summary
CharacterSet(java.lang.String name)
          Constructor.
CharacterSet(java.lang.String name, java.lang.String description)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 int hashCode()
          
static CharacterSet valueOf(java.lang.String name)
          Returns the character set associated to a name.
 
Methods inherited from class org.restlet.gwt.data.Metadata
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final CharacterSet ALL
All character sets acceptable.


ISO_8859_1

public static final CharacterSet ISO_8859_1
The ISO/IEC 8859-1 or Latin 1 character set.

See Also:
Wikipedia page

US_ASCII

public static final CharacterSet US_ASCII
The US-ASCII character set.

See Also:
Wikipedia page

UTF_8

public static final CharacterSet UTF_8
The UTF-8 character set.

See Also:
Wikipedia page

UTF_16

public static final CharacterSet UTF_16
The UTF-16 character set.

See Also:
Wikipedia page
Constructor Detail

CharacterSet

public CharacterSet(java.lang.String name)
Constructor.

Parameters:
name - The name.

CharacterSet

public CharacterSet(java.lang.String name,
                    java.lang.String description)
Constructor.

Parameters:
name - The name.
description - The description.
Method Detail

valueOf

public static CharacterSet valueOf(java.lang.String name)
Returns the character set associated to a name. If an existing constant exists then it is returned, otherwise a new instance is created.

Parameters:
name - The name.
Returns:
The associated character set.

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class Metadata

hashCode

public int hashCode()

Overrides:
hashCode in class Metadata


Copyright © 2005-2008 Noelios Technologies.