public class SmsHeader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmsHeader.ConcatRef |
static class |
SmsHeader.MiscElt
A header element that is not explicitly parsed, meaning not
PortAddrs or ConcatRef or SpecialSmsMsg.
|
static class |
SmsHeader.PortAddrs |
static class |
SmsHeader.SpecialSmsMsg |
Constructor and Description |
---|
SmsHeader() |
Modifier and Type | Method and Description |
---|---|
static SmsHeader |
fromByteArray(byte[] data)
Create structured SmsHeader object from serialized byte array representation.
|
static byte[] |
toByteArray(SmsHeader smsHeader)
Create serialized byte array representation from structured SmsHeader object.
|
String |
toString()
Returns a string representation of the object.
|
public static final int ELT_ID_CONCATENATED_8_BIT_REFERENCE
public static final int ELT_ID_SPECIAL_SMS_MESSAGE_INDICATION
public static final int ELT_ID_APPLICATION_PORT_ADDRESSING_8_BIT
public static final int ELT_ID_APPLICATION_PORT_ADDRESSING_16_BIT
public static final int ELT_ID_SMSC_CONTROL_PARAMS
public static final int ELT_ID_UDH_SOURCE_INDICATION
public static final int ELT_ID_CONCATENATED_16_BIT_REFERENCE
public static final int ELT_ID_WIRELESS_CTRL_MSG_PROTOCOL
public static final int ELT_ID_TEXT_FORMATTING
public static final int ELT_ID_PREDEFINED_SOUND
public static final int ELT_ID_USER_DEFINED_SOUND
public static final int ELT_ID_PREDEFINED_ANIMATION
public static final int ELT_ID_LARGE_ANIMATION
public static final int ELT_ID_SMALL_ANIMATION
public static final int ELT_ID_LARGE_PICTURE
public static final int ELT_ID_SMALL_PICTURE
public static final int ELT_ID_VARIABLE_PICTURE
public static final int ELT_ID_USER_PROMPT_INDICATOR
public static final int ELT_ID_EXTENDED_OBJECT
public static final int ELT_ID_REUSED_EXTENDED_OBJECT
public static final int ELT_ID_COMPRESSION_CONTROL
public static final int ELT_ID_OBJECT_DISTR_INDICATOR
public static final int ELT_ID_STANDARD_WVG_OBJECT
public static final int ELT_ID_CHARACTER_SIZE_WVG_OBJECT
public static final int ELT_ID_EXTENDED_OBJECT_DATA_REQUEST_CMD
public static final int ELT_ID_RFC_822_EMAIL_HEADER
public static final int ELT_ID_HYPERLINK_FORMAT_ELEMENT
public static final int ELT_ID_REPLY_ADDRESS_ELEMENT
public static final int ELT_ID_ENHANCED_VOICE_MAIL_INFORMATION
public static final int ELT_ID_NATIONAL_LANGUAGE_SINGLE_SHIFT
public static final int ELT_ID_NATIONAL_LANGUAGE_LOCKING_SHIFT
public static final int PORT_WAP_PUSH
public static final int PORT_WAP_WSP
public SmsHeader.PortAddrs portAddrs
public SmsHeader.ConcatRef concatRef
public ArrayList<SmsHeader.SpecialSmsMsg> specialSmsMsgList
public ArrayList<SmsHeader.MiscElt> miscEltList
public int languageTable
public int languageShiftTable
public static SmsHeader fromByteArray(byte[] data)
data
- is user data header bytespublic static byte[] toByteArray(SmsHeader smsHeader)
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())