public enum SMSCharacterEncoding extends java.lang.Enum<SMSCharacterEncoding>
Enum Constant and Description |
---|
ASCII |
CYRLLIC |
JIS |
LATIN |
LATINHEBREW |
SMSC_DEFAULT |
UCS2 |
UNSPEC1 |
UNSPEC2 |
Modifier and Type | Method and Description |
---|---|
int |
getEncoding() |
static SMSCharacterEncoding |
instanceFromValue(int encoding)
Returns the character encoding to send with the message.
|
static SMSCharacterEncoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SMSCharacterEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SMSCharacterEncoding SMSC_DEFAULT
public static final SMSCharacterEncoding ASCII
public static final SMSCharacterEncoding UNSPEC1
public static final SMSCharacterEncoding LATIN
public static final SMSCharacterEncoding UNSPEC2
public static final SMSCharacterEncoding JIS
public static final SMSCharacterEncoding CYRLLIC
public static final SMSCharacterEncoding LATINHEBREW
public static final SMSCharacterEncoding UCS2
public static SMSCharacterEncoding[] values()
for (SMSCharacterEncoding c : SMSCharacterEncoding.values()) System.out.println(c);
public static SMSCharacterEncoding valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SMSCharacterEncoding instanceFromValue(int encoding) throws MessageException
encoding
- The encoding caluse to use. Recommendation is to use 0, 3 or 8 as values as they are
the most commonly used. The default is 0 if one doesn't select which one they want to use, and it usually suffices.MessageException
- triggered when one tries to instansiate the object with a value less than 0 or grater than 8 .public int getEncoding()