org.marre.sms
Class SmsConcatMessage

java.lang.Object
  extended byorg.marre.sms.SmsConcatMessage
All Implemented Interfaces:
SmsMessage
Direct Known Subclasses:
SmsPortAddressedMessage, SmsTextMessage

public abstract class SmsConcatMessage
extends java.lang.Object
implements SmsMessage

Baseclass for messages that needs to be concatenated.

- Only usable for messages that uses the same UDH fields for all message parts.
- This class could be better written. There are several parts that are copy- pasted.
- The septet coding could be a bit optimized.

Version:
$Id: SmsConcatMessage.java,v 1.16 2005/05/06 13:55:11 c95men Exp $
Author:
Markus Eriksson

Constructor Summary
protected SmsConcatMessage()
          Creates an empty SmsConcatMessage.
 
Method Summary
 SmsPdu[] getPdus()
          Converts this message into SmsPdu:s If the message is too long to fit in one SmsPdu the message is divided into many SmsPdu:s with a 8-bit concat pdu UDH element.
abstract  SmsUdhElement[] getUdhElements()
          Returns the udh elements The returned UDH is the same as specified when the message was created.
abstract  SmsUserData getUserData()
          Returns the whole UD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmsConcatMessage

protected SmsConcatMessage()
Creates an empty SmsConcatMessage.

Method Detail

getUserData

public abstract SmsUserData getUserData()
Returns the whole UD

Returns:
the UD

getUdhElements

public abstract SmsUdhElement[] getUdhElements()
Returns the udh elements

The returned UDH is the same as specified when the message was created. No concat headers are added.

Returns:
the UDH as SmsUdhElements

getPdus

public SmsPdu[] getPdus()
Converts this message into SmsPdu:s

If the message is too long to fit in one SmsPdu the message is divided into many SmsPdu:s with a 8-bit concat pdu UDH element.

Specified by:
getPdus in interface SmsMessage
Returns:
Returns the message as SmsPdu:s


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.