Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.gsm
Class LongMessageStatus

java.lang.Object
  extended by ie.ncl.sms.gsm.LongMessageStatus
All Implemented Interfaces:
java.util.Comparator

public class LongMessageStatus
extends java.lang.Object
implements java.util.Comparator

This object is used to maintain the status of a long message. A status is maintained for each Address,Sequence number pair.


Constructor Summary
LongMessageStatus(Address address, int sequence, int totalFragments)
          Construct the status of a long message.
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Implements Comparator API.
 boolean complete()
          Indicate if the LongMessageStatus is complete, ie all fragments have been received.
 boolean equals(java.lang.Object a)
          Implements Comparator API.
 Address getAddress()
          Get the address of this progress object.
 int getSequence()
          Get the sequence number of this progress object.
 int getTotalFragments()
          Get the number of fragments in the long message.
 void receivedFragment()
          Increment the counter keeping track of received fragments.
 java.lang.String toString()
          To string.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongMessageStatus

public LongMessageStatus(Address address,
                         int sequence,
                         int totalFragments)
Construct the status of a long message. this is used to keep track of how many fragments of a long message have been received.

Method Detail

complete

public boolean complete()
Indicate if the LongMessageStatus is complete, ie all fragments have been received.


getSequence

public int getSequence()
Get the sequence number of this progress object.


getAddress

public Address getAddress()
Get the address of this progress object.


getTotalFragments

public int getTotalFragments()
Get the number of fragments in the long message.


receivedFragment

public void receivedFragment()
Increment the counter keeping track of received fragments.


toString

public java.lang.String toString()
To string.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object a)
Implements Comparator API.

Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Implements Comparator API.

Specified by:
compare in interface java.util.Comparator

Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit