SMSLib 3.5.3

org.smslib
Class OutboundBinaryMessage

java.lang.Object
  extended by org.smslib.Message
      extended by org.smslib.OutboundMessage
          extended by org.smslib.OutboundBinaryMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OutboundEncryptedMessage, OutboundWapSIMessage

public class OutboundBinaryMessage
extends OutboundMessage

Class representing an outbound binary (forced 8bit encoded) sms message.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.smslib.OutboundMessage
OutboundMessage.FailureCauses, OutboundMessage.MessageStatuses
 
Nested classes/interfaces inherited from class org.smslib.Message
Message.MessageClasses, Message.MessageEncodings, Message.MessageTypes
 
Constructor Summary
OutboundBinaryMessage()
           
OutboundBinaryMessage(java.lang.String myRecipient, byte[] bytes)
          Outbound message constructor.
 
Method Summary
 void addDataBytes(byte[] myDataBytes)
           
 void addText(java.lang.String s)
           
 byte[] getDataBytes()
           
 java.lang.String getText()
          Returns the message text.
 void setDataBytes(byte[] myDataBytes)
           
 void setText(java.lang.String s)
          Sets the message text.
 
Methods inherited from class org.smslib.OutboundMessage
getDeliveryDelay, getDispatchDate, getErrorMessage, getFailureCause, getFlashSms, getFrom, getMessageStatus, getPdus, getPduUserData, getPduUserDataHeader, getPriority, getRecipient, getRefNo, getRetryCount, getScheduledDeliveryDate, getStatusReport, getValidityPeriod, setDeliveryDelay, setDispatchDate, setEncoding, setErrorMessage, setFailureCause, setFlashSms, setFrom, setMessageStatus, setPriority, setRecipient, setRefNo, setRetryCount, setScheduledDeliveryDate, setStatusReport, setValidityPeriod, toString
 
Methods inherited from class org.smslib.Message
getDate, getDCSMessageClass, getDstPort, getEncoding, getGatewayId, getId, getMessageId, getSrcPort, getType, getUuid, setDate, setDCSMessageClass, setDstPort, setGatewayId, setId, setSrcPort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutboundBinaryMessage

public OutboundBinaryMessage()

OutboundBinaryMessage

public OutboundBinaryMessage(java.lang.String myRecipient,
                             byte[] bytes)
Outbound message constructor.

Parameters:
myRecipient - The recipient of the message.
bytes - The bytes (binary data) of the message.
Method Detail

getText

public java.lang.String getText()
Description copied from class: Message
Returns the message text.

Overrides:
getText in class Message
Returns:
The message text.
See Also:
Message.setText(String)

setText

public void setText(java.lang.String s)
Description copied from class: Message
Sets the message text.

Overrides:
setText in class Message
Parameters:
s - The message text.
See Also:
Message.getText()

addText

public void addText(java.lang.String s)
Overrides:
addText in class Message

getDataBytes

public byte[] getDataBytes()

setDataBytes

public void setDataBytes(byte[] myDataBytes)

addDataBytes

public void addDataBytes(byte[] myDataBytes)

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org