|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.sms.SmsPdu
Represents an SMS pdu
A SMS pdu consists of a user data header (UDH) and the actual content often called user data (UD).
Field Summary | |
protected SmsUserData |
myUd
|
protected SmsUdhElement[] |
myUdhElements
|
Constructor Summary | |
SmsPdu()
Creates an empty SMS pdu object |
|
SmsPdu(SmsUdhElement[] theUdhIeis,
byte[] theUd,
int theUdLength,
SmsDcs theDataCodingScheme)
Creates an SMS pdu object. |
|
SmsPdu(SmsUdhElement[] theUdhIeis,
SmsUserData theUd)
Creates an SMS pdu object. |
Method Summary | |
SmsDcs |
getDcs()
Returns the dcs. |
SmsUserData |
getUserData()
Returns the user data part of the message. |
byte[] |
getUserDataHeaders()
Returns the user data headers |
void |
setUserData(byte[] theUd,
int theUdLength,
SmsDcs theDataCodingScheme)
Sets the user data field of the message. |
void |
setUserData(SmsUserData theUd)
Sets the user data field of the message. |
void |
setUserDataHeaders(SmsUdhElement[] theUdhElements)
Sets the UDH field |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SmsUdhElement[] myUdhElements
protected SmsUserData myUd
Constructor Detail |
public SmsPdu()
public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength, SmsDcs theDataCodingScheme)
theUdhIeis
- The UDH elementstheUd
- The contenttheUdLength
- The length of the content. Can be in octets or septets
depending on the DCSpublic SmsPdu(SmsUdhElement[] theUdhIeis, SmsUserData theUd)
theUdhIeis
- The UDH elementstheUd
- The contentMethod Detail |
public void setUserDataHeaders(SmsUdhElement[] theUdhElements)
theUdhElements
- The UDH elementspublic byte[] getUserDataHeaders()
public void setUserData(byte[] theUd, int theUdLength, SmsDcs theDataCodingScheme)
theUd
- The contenttheUdLength
- The length, can be in septets or octets depending on the DCStheDataCodingScheme
- The data coding schemepublic void setUserData(SmsUserData theUd)
theUd
- The contentpublic SmsUserData getUserData()
public SmsDcs getDcs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |