public class CLIIcon extends SmartMessage
Example:
... SmsService service = new GsmSmsService(); ... CLIIcon icon = new CLIIcon(); java.awt.Image img = Toolkit.getDefaultToolkit().getImage("c:/tmp/friends.gif"); icon.setCLIIcon(img); icon.setRecipient("+41791234567"); service.sendMessage(icon); ...
Modifier and Type | Field and Description |
---|---|
static int |
MAX_HEIGTH
Maximum height of a Operator Logo (14 pixels)
|
static int |
MAX_WIDTH
Maximum width of a Operator Logo (72 pixels)
|
CLASS_0, CLASS_1, CLASS_2, CLASS_3, DC_8BIT, DC_DEFAULT, DC_GROUP_DATA, DC_GROUP_GENERAL, DC_GROUP_MSG_WAITING_DISCARD, DC_GROUP_MSG_WAITING_STORE, DC_UCS2, INDICATION_ACTIVE, INDICATION_INACTIVE, INDICATION_TYPE_EMAIL, INDICATION_TYPE_FAX, INDICATION_TYPE_OTHER, INDICATION_TYPE_VOICEMAIL, NO_CLASS
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER
Constructor and Description |
---|
CLIIcon()
Create a new Calling Line Identification Icon Picture Message.
|
CLIIcon(SmsService service)
Deprecated.
since jSMS 1.7, use
CLIIcon() |
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
getImage()
Transformes and returns the OTA image as Image object.
|
java.lang.String |
getMessage()
Get the Message (User Data) as String.
|
byte[] |
getOtaImage() |
byte[] |
getUserData()
Get the User Data of this message.
|
void |
setCLIIcon(byte[] bytes)
Set the image.
|
void |
setCLIIcon(java.awt.Image img)
Set the icon image.
|
java.lang.String |
toString()
Constructs a string representation of this Message
|
buildParts, buildParts, getParts, getTimestamp
containsUserDataHeader, copyFields, getAlphabet, getBytes, getCodingGroup, getDeferredDeliveryAsDate, getDeferredDeliveryInMinutes, getID, getIndicationState, getIndicationType, getMessageClass, getParent, getPID, getRecipient, getRecipientAddress, getSender, getSenderAddress, getType, getUserDataHeader, getValidityPeriodAsDate, getValidityPeriodInMinutes, hasDeferredDelivery, hasMessageClass, hasValidityPeriod, isCompressed, isMMS, isRejectDuplicates, isRelativeDeferredDelivery, isRelativeValidityPeriod, isReplyPath, requestStatusReport, requestStatusReport, setAlphabet, setCodingGroup, setCompression, setDeferredDelivery, setDeferredDelivery, setIndicationState, setIndicationType, setMessage, setMessage, setMessageClass, setMMS, setParent, setPID, setRecipient, setRecipientAddress, setRejectDuplicates, setReplyPath, setSender, setSenderAddress, setType, setUserData, setUserDataHeader, setUserDataHeader, setValidityPeriod, setValidityPeriod
clone, getProperty, getSenderType, setID, setProperty, setSenderType
public static final int MAX_HEIGTH
public static final int MAX_WIDTH
public CLIIcon() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the SmsService is null or has not yet
been initialized.public CLIIcon(SmsService service)
CLIIcon()
service
- the initialized SmsService used for sending the messagepublic void setCLIIcon(java.awt.Image img)
img
- a java.awt.Image representing the icon (e.g. GIF or JPEG)public void setCLIIcon(byte[] bytes)
bytes
- a byte array holding an OTA image.public java.lang.String getMessage()
SmsMessage
getMessage
in class SmsMessage
SmsMessage.getUserData()
public byte[] getUserData()
SmsMessage
getUserData
in class SmsMessage
public java.lang.String toString()
Message
toString
in class SmsMessage
public java.awt.Image getImage()
public byte[] getOtaImage()
object XP, Inc. © 2000-2013. All rights reserved object XP