org.marre.sms.nokia
Class NokiaPictureMessage

java.lang.Object
  extended byorg.marre.sms.SmsConcatMessage
      extended byorg.marre.sms.SmsPortAddressedMessage
          extended byorg.marre.sms.nokia.NokiaMultipartMessage
              extended byorg.marre.sms.nokia.NokiaPictureMessage
All Implemented Interfaces:
SmsMessage

public class NokiaPictureMessage
extends org.marre.sms.nokia.NokiaMultipartMessage

Nokia Picture message

Version:
$Id: NokiaPictureMessage.java,v 1.8 2002/10/09 19:30:32 c95men Exp $
Author:
Markus Eriksson

Field Summary
 
Fields inherited from class org.marre.sms.SmsPortAddressedMessage
myDestPort, myOrigPort
 
Constructor Summary
NokiaPictureMessage(byte[] theBitmap, java.lang.String theMsg)
          Creates a Nokia Picture Message
NokiaPictureMessage(byte[] theBitmap, java.lang.String theMsg, boolean asUnicode)
          Creates a Nokia Picture Message
NokiaPictureMessage(OtaBitmap theBitmap, java.lang.String theMsg)
          Creates a Nokia Picture Message
NokiaPictureMessage(OtaBitmap theBitmap, java.lang.String theMsg, boolean asUnicode)
          Creates a Nokia Picture Message
 
Method Summary
protected  void addMultipart(byte theItemType, byte[] data)
          Adds a part to this multipart message
protected  void clear()
          Removes all parts from the message
 SmsUserData getUserData()
          Returns the whole UD
 
Methods inherited from class org.marre.sms.SmsPortAddressedMessage
getUdhElements, setPorts
 
Methods inherited from class org.marre.sms.SmsConcatMessage
getPdus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NokiaPictureMessage

public NokiaPictureMessage(OtaBitmap theBitmap,
                           java.lang.String theMsg)
Creates a Nokia Picture Message

Parameters:
theBitmap -
theMsg -

NokiaPictureMessage

public NokiaPictureMessage(byte[] theBitmap,
                           java.lang.String theMsg)
Creates a Nokia Picture Message

Parameters:
theBitmap -
theMsg -

NokiaPictureMessage

public NokiaPictureMessage(OtaBitmap theBitmap,
                           java.lang.String theMsg,
                           boolean asUnicode)
Creates a Nokia Picture Message

Parameters:
theBitmap -
theMsg -
asUnicode - Set to true if text should be sent as unicode

NokiaPictureMessage

public NokiaPictureMessage(byte[] theBitmap,
                           java.lang.String theMsg,
                           boolean asUnicode)
Creates a Nokia Picture Message

Parameters:
theBitmap -
theMsg -
asUnicode - Set to true if text should be sent as unicode
Method Detail

addMultipart

protected void addMultipart(byte theItemType,
                            byte[] data)
Adds a part to this multipart message

Parameters:
theItemType - Type
data - Content

clear

protected void clear()
Removes all parts from the message


getUserData

public SmsUserData getUserData()
Description copied from class: SmsConcatMessage
Returns the whole UD

Specified by:
getUserData in class SmsConcatMessage
Returns:
the UD


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