public enum CharacterSet extends Enum<CharacterSet>
Enum Constant and Description |
---|
ASCII |
defaultCharacterSet |
ISO_8859_1 |
US_ASCII |
UTF_16 |
UTF_8 |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static CharacterSet |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CharacterSet[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharacterSet UTF_8
public static final CharacterSet UTF_16
public static final CharacterSet US_ASCII
public static final CharacterSet ASCII
public static final CharacterSet ISO_8859_1
public static final CharacterSet defaultCharacterSet
public static CharacterSet[] values()
for (CharacterSet c : CharacterSet.values()) System.out.println(c);
public static CharacterSet valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String asString()
Copyright © 2013. All rights reserved.