org.marre.sms.siemens
Class SiemensOtaMessage

java.lang.Object
  extended byorg.marre.sms.siemens.SiemensOtaMessage
All Implemented Interfaces:
SmsMessage

public class SiemensOtaMessage
extends java.lang.Object
implements SmsMessage

Version:
$Id: SiemensOtaMessage.java,v 1.4 2005/05/06 13:55:14 c95men Exp $
Author:
Raphael Borg Ellul Vincenti

Field Summary
protected  byte[] myContent
           
protected  int myDataSize
           
protected  java.lang.String myName
           
protected  int myNumberOfPackets
           
protected  long myReferenceId
           
protected  java.lang.String myType
           
protected  int myVersion
           
 
Constructor Summary
SiemensOtaMessage(int version, java.lang.String name, java.lang.String type, byte[] content)
          Creates an SMS containing a Bitmap or a Ringtone
SiemensOtaMessage(java.lang.String name, java.lang.String type, byte[] content)
          Creates an SMS containing a Bitmap or a Ringtone
 
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 different packet number
static byte[] loadFromFile(java.io.File file)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myVersion

protected int myVersion

myName

protected java.lang.String myName

myType

protected java.lang.String myType

myReferenceId

protected long myReferenceId

myDataSize

protected int myDataSize

myNumberOfPackets

protected int myNumberOfPackets

myContent

protected byte[] myContent
Constructor Detail

SiemensOtaMessage

public SiemensOtaMessage(java.lang.String name,
                         java.lang.String type,
                         byte[] content)
Creates an SMS containing a Bitmap or a Ringtone


SiemensOtaMessage

public SiemensOtaMessage(int version,
                         java.lang.String name,
                         java.lang.String type,
                         byte[] content)
Creates an SMS containing a Bitmap or a Ringtone

Method Detail

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 different packet number

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

loadFromFile

public static byte[] loadFromFile(java.io.File file)
                           throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)


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