public class UserData extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ASCII_CR_INDEX |
static char[] |
ASCII_MAP
US ASCII character mapping table.
|
static int |
ASCII_MAP_BASE_INDEX
Mapping for ASCII values less than 32 are flow control signals
and not used here.
|
static int |
ASCII_MAP_MAX_INDEX |
static int |
ASCII_NL_INDEX |
static SparseIntArray |
charToAscii |
static int |
ENCODING_7BIT_ASCII |
static int |
ENCODING_GSM_7BIT_ALPHABET |
static int |
ENCODING_GSM_DCS |
static int |
ENCODING_IA5 |
static int |
ENCODING_IS91_EXTENDED_PROTOCOL |
static int |
ENCODING_KOREAN |
static int |
ENCODING_LATIN |
static int |
ENCODING_LATIN_HEBREW |
static int |
ENCODING_OCTET
User data encoding types.
|
static int |
ENCODING_SHIFT_JIS |
static int |
ENCODING_UNICODE_16 |
static int |
IS91_MSG_TYPE_CLI |
static int |
IS91_MSG_TYPE_SHORT_MESSAGE |
static int |
IS91_MSG_TYPE_SHORT_MESSAGE_FULL |
static int |
IS91_MSG_TYPE_VOICEMAIL_STATUS
IS-91 message types.
|
int |
msgEncoding
Contains the data encoding type for the SMS message
|
boolean |
msgEncodingSet |
int |
msgType |
int |
numFields |
int |
paddingBits
Number of invalid bits in the last byte of data.
|
byte[] |
payload
Contains the user data of a SMS message
(See 3GPP2 C.S0015-B, v2, 4.5.2)
|
String |
payloadStr |
static int |
PRINTABLE_ASCII_MIN_INDEX
Only elements between these indices in the ASCII table are printable.
|
SmsHeader |
userDataHeader
Contains the data header of the user data
|
Constructor and Description |
---|
UserData() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
stringToAscii(String str)
Given a string generate a corresponding ASCII-encoded byte
array, but limited to printable characters.
|
String |
toString()
Returns a string representation of the object.
|
public static final int ENCODING_OCTET
public static final int ENCODING_IS91_EXTENDED_PROTOCOL
public static final int ENCODING_7BIT_ASCII
public static final int ENCODING_IA5
public static final int ENCODING_UNICODE_16
public static final int ENCODING_SHIFT_JIS
public static final int ENCODING_KOREAN
public static final int ENCODING_LATIN_HEBREW
public static final int ENCODING_LATIN
public static final int ENCODING_GSM_7BIT_ALPHABET
public static final int ENCODING_GSM_DCS
public static final int IS91_MSG_TYPE_VOICEMAIL_STATUS
public static final int IS91_MSG_TYPE_SHORT_MESSAGE_FULL
public static final int IS91_MSG_TYPE_CLI
public static final int IS91_MSG_TYPE_SHORT_MESSAGE
public static final char[] ASCII_MAP
public static final int PRINTABLE_ASCII_MIN_INDEX
public static final int ASCII_NL_INDEX
public static final int ASCII_CR_INDEX
public static final SparseIntArray charToAscii
public static final int ASCII_MAP_BASE_INDEX
public static final int ASCII_MAP_MAX_INDEX
public SmsHeader userDataHeader
public int msgEncoding
public boolean msgEncodingSet
public int msgType
public int paddingBits
public int numFields
public byte[] payload
public String payloadStr
public static byte[] stringToAscii(String str)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())