public class CharSet extends EnumeratedAttribute
value| Constructor and Description |
|---|
CharSet()
Default constructor.
|
CharSet(java.lang.String value)
Construct a new CharSet with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equivalent(CharSet cs)
Tell if CharSet values are aliases.
|
static CharSet |
getAscii()
Convenience methood: get US-ASCII CharSet.
|
java.nio.charset.Charset |
getCharset()
Convert this enumerated type to a
Charset. |
static CharSet |
getDefault()
Get the default value as provided by Charset.
|
static CharSet |
getUtf8()
Convenience method: get UTF-8 CharSet.
|
java.lang.String[] |
getValues()
Return the possible values.
|
void |
setValue(java.lang.String value)
Accept additional values for backwards compatibility
(some java.io encoding names not available in java.nio)
|
containsValue, getIndex, getInstance, getValue, indexOfValue, toStringpublic CharSet()
public CharSet(java.lang.String value)
value - the EnumeratedAttribute value.public static CharSet getDefault()
public static CharSet getAscii()
public static CharSet getUtf8()
public boolean equivalent(CharSet cs)
cs - CharSet to compare the value to.public java.nio.charset.Charset getCharset()
Charset.Charset object.public java.lang.String[] getValues()
getValues in class EnumeratedAttributepublic final void setValue(java.lang.String value)
setValue in class EnumeratedAttributevalue - the String value of the attribute