public static enum SMSDataCodingScheme.GeneralScheme.CharacterSet extends Enum<SMSDataCodingScheme.GeneralScheme.CharacterSet>
The API offered by this class is as if the type were specified in ASN.1 as follows.
CharacterSet ::= ENUMERATED { GSM_7BIT (0), DATA_8BIT (1), UCS2 (2), RESERVED (3) }
Enum Constant and Description |
---|
DATA_8BIT
Character Set value (1) corresponding to 8 bit data.
|
GSM_7BIT
Character Set value (0) corresponding to GSM 7 bit default alphabet.
|
RESERVED
Character Set value (3) corresponding to reserved.
|
UCS2
Character Set value (2) corresponding to UCS2 (16 bit).
|
Modifier and Type | Method and Description |
---|---|
static SMSDataCodingScheme.GeneralScheme.CharacterSet |
fromValue(int value)
Returns the enumeration constant for a given encoded value.
|
int |
intValue()
Gets the integer ASN.1 encoded value of this enumeration constant.
|
static SMSDataCodingScheme.GeneralScheme.CharacterSet |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SMSDataCodingScheme.GeneralScheme.CharacterSet[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SMSDataCodingScheme.GeneralScheme.CharacterSet GSM_7BIT
public static final SMSDataCodingScheme.GeneralScheme.CharacterSet DATA_8BIT
public static final SMSDataCodingScheme.GeneralScheme.CharacterSet UCS2
public static final SMSDataCodingScheme.GeneralScheme.CharacterSet RESERVED
public static SMSDataCodingScheme.GeneralScheme.CharacterSet[] values()
for (SMSDataCodingScheme.GeneralScheme.CharacterSet c : SMSDataCodingScheme.GeneralScheme.CharacterSet.values()) System.out.println(c);
public static SMSDataCodingScheme.GeneralScheme.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 int intValue()
public static SMSDataCodingScheme.GeneralScheme.CharacterSet fromValue(int value)
value
- encoded valueIllegalArgumentException
- if there is no enumeration constant with the given encoded value