|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.marre.sms.SmsConcatMessage
org.marre.sms.SmsTextMessage
Represents a text message.
The text can be sent in unicode (max 70 chars/SMS), 8-bit (max 140 chars/SMS) or GSM encoding (max 160 chars/SMS).
| Constructor Summary | |
SmsTextMessage(java.lang.String theMsg)
Creates an SmsTextMessage with default 7Bit GSM Alphabet |
|
SmsTextMessage(java.lang.String theMsg,
int theAlphabet,
byte theMessageClass)
Creates an SmsTextMessage with the given alphabet and message class. |
|
SmsTextMessage(java.lang.String theMsg,
SmsDcs theDcs)
Creates an SmsTextMessage with the given dcs. |
|
| Method Summary | |
SmsDcs |
getDcs()
Returns the dcs. |
java.lang.String |
getText()
Returns the text message. |
SmsUdhElement[] |
getUdhElements()
Returns null. |
SmsUserData |
getUserData()
Returns the user data. |
void |
setText(java.lang.String text)
Sets the text. |
void |
setText(java.lang.String text,
SmsDcs dcs)
Sets the text. |
| Methods inherited from class org.marre.sms.SmsConcatMessage |
getPdus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SmsTextMessage(java.lang.String theMsg,
SmsDcs theDcs)
theMsg - The messagetheDcs - The data coding scheme
public SmsTextMessage(java.lang.String theMsg,
int theAlphabet,
byte theMessageClass)
theAlphabet can be any of:
- SmsConstants.ALPHABET_GSM
- SmsConstants.ALPHABET_8BIT
- SmsConstants.ALPHABET_UCS2
theMessageClass can be any of:
- SmsConstants.MSG_CLASS_0 (Often called a FLASH message)
- SmsConstants.MSG_CLASS_1
- SmsConstants.MSG_CLASS_2
- SmsConstants.MSG_CLASS_3
theMsg - The messagetheAlphabet - The alphabettheMessageClass - The messageclasspublic SmsTextMessage(java.lang.String theMsg)
theMsg - The message| Method Detail |
public java.lang.String getText()
public void setText(java.lang.String text)
text -
public void setText(java.lang.String text,
SmsDcs dcs)
text - public SmsDcs getDcs()
public SmsUserData getUserData()
getUserData in class SmsConcatMessagepublic SmsUdhElement[] getUdhElements()
getUdhElements in class SmsConcatMessage
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||