public final class CharacterSet extends Metadata
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CharacterSet(java.nio.charset.Charset charset)
Constructor.
|
CharacterSet(java.lang.String name)
Constructor.
|
CharacterSet(java.lang.String name,
java.lang.String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.nio.charset.Charset |
toCharset()
Returns the NIO charset matching the character set name.
|
static CharacterSet |
valueOf(java.lang.String name)
Returns the character set associated to a name.
|
getDescription, getName, isCompatible, toString
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()
public CharacterSet(java.nio.charset.Charset charset)
charset
- The character set.public CharacterSet(java.lang.String name)
name
- The name.public CharacterSet(java.lang.String name, java.lang.String description)
name
- The name.description
- The description.public static CharacterSet valueOf(java.lang.String name)
name
- The name.public Metadata getParent()
Metadata
public boolean includes(Metadata included)
Examples:
includes
in class Metadata
included
- The character set to test for inclusion.Metadata.isCompatible(Metadata)
public java.nio.charset.Charset toCharset()
Copyright © 2005-2024 Restlet.