|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
org.restlet.data.CharacterSet
public final class CharacterSet
Metadata used to specify the character set of textual representations.
Field Summary | |
---|---|
static CharacterSet |
ALL
All character sets acceptable. |
static CharacterSet |
DEFAULT
The default character set of the JVM. |
static CharacterSet |
ISO_8859_1
The ISO/IEC 8859-1 (Latin 1) character set. |
static CharacterSet |
ISO_8859_10
The ISO/IEC 8859-10 (Latin 6) character set. |
static CharacterSet |
ISO_8859_2
The ISO/IEC 8859-2 (Latin 2) character set. |
static CharacterSet |
ISO_8859_3
The ISO/IEC 8859-3 (Latin 3) character set. |
static CharacterSet |
ISO_8859_4
The ISO/IEC 8859-4 (Latin 4) character set. |
static CharacterSet |
ISO_8859_5
The ISO/IEC 8859-5 (Cyrillic) character set. |
static CharacterSet |
ISO_8859_6
The ISO/IEC 8859-6 (Arabic) character set. |
static CharacterSet |
ISO_8859_7
The ISO/IEC 8859-7 (Greek) character set. |
static CharacterSet |
ISO_8859_8
The ISO/IEC 8859-8 (Hebrew) character set. |
static CharacterSet |
ISO_8859_9
The ISO/IEC 8859-9 (Latin 5) character set. |
static CharacterSet |
MACINTOSH
The Macintosh ("Mac OS Roman") 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. |
static CharacterSet |
WINDOWS_1252
The Windows-1252 ('ANSI') character set. |
Constructor Summary | |
---|---|
CharacterSet(Charset charset)
Constructor. |
|
CharacterSet(String name)
Constructor. |
|
CharacterSet(String name,
String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
Metadata |
getParent()
Returns the parent metadata if available or null. |
int |
hashCode()
|
boolean |
includes(Metadata included)
Indicates if a given character set is included in the current one. |
Charset |
toCharset()
Returns the NIO charset matching the character set name. |
static CharacterSet |
valueOf(String name)
Returns the character set associated to a name. |
Methods inherited from class org.restlet.data.Metadata |
---|
getDescription, getName, isCompatible, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CharacterSet ALL
public static final CharacterSet ISO_8859_1
public static final CharacterSet ISO_8859_2
public static final CharacterSet ISO_8859_3
public static final CharacterSet ISO_8859_4
public static final CharacterSet ISO_8859_5
public static final CharacterSet ISO_8859_6
public static final CharacterSet ISO_8859_7
public static final CharacterSet ISO_8859_8
public static final CharacterSet ISO_8859_9
public static final CharacterSet ISO_8859_10
public static final CharacterSet MACINTOSH
public static final CharacterSet US_ASCII
public static final CharacterSet UTF_16
public static final CharacterSet UTF_8
public static final CharacterSet WINDOWS_1252
public static final CharacterSet DEFAULT
Charset.defaultCharset()
Constructor Detail |
---|
public CharacterSet(Charset charset)
charset
- The character set.public CharacterSet(String name)
name
- The name.public CharacterSet(String name, String description)
name
- The name.description
- The description.Method Detail |
---|
public static CharacterSet valueOf(String name)
name
- The name.
public boolean equals(Object object)
equals
in class Metadata
public Metadata getParent()
Metadata
getParent
in class Metadata
public int hashCode()
hashCode
in class Metadata
public boolean includes(Metadata included)
Examples:
includes
in class Metadata
included
- The character set to test for inclusion.
Metadata.isCompatible(Metadata)
public Charset toCharset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |