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.nbs
Class PictureMessage

java.lang.Object
  extended by ie.ncl.msg.Message
      extended by ie.ncl.msg.BinaryMessage
          extended by ie.ncl.sms.nbs.SmartMessage
              extended by ie.ncl.sms.nbs.PictureMessage
All Implemented Interfaces:
java.io.Serializable

public class PictureMessage
extends SmartMessage

Class is used to create a picture message.

See Also:
Serialized Form

Field Summary
static int MAX_HEIGHT
          This is the maximum height of a LogoMessage bitmap.
static int MAX_WIDTH
          This is the maximum width of a LogoMessage bitmap.
 
Fields inherited from class ie.ncl.sms.nbs.SmartMessage
CR, LF, PORT_COMPACT_BUSINESS_CARD, PORT_DYNAMIC_MENU_CONTROL_PROTOCOL, PORT_ICON_READER, PORT_INTERNET_ACCESS_CONFIGURATION, PORT_JAVA, PORT_OPERATOR_LOGO, PORT_PICTURE_MESSAGE, PORT_RING_TONE, PORT_SERVICE_CARD, PORT_SIMPLE_EMAIL_NOTIFICATION, PORT_TTML, PORT_UP_BROWSER, PORT_UP_LINK, PORT_UP_MAIL, PORT_VCALENDAR, PORT_VCARD, PORT_WINK, TRANSFER_MODE_BINARY, TRANSFER_MODE_TEXT
 
Constructor Summary
PictureMessage(Address addr, ie.ncl.util.bin.Bitmap bm, java.lang.String text)
           
PictureMessage(Address addr, ie.ncl.util.bin.Bitmap bm, java.lang.String text, boolean unicode)
          Create a picture message.
PictureMessage(Address addr, byte[] bm, java.lang.String text)
           
 
Method Summary
 
Methods inherited from class ie.ncl.sms.nbs.SmartMessage
encodeToSms, getDestinationPort, getMaximumFragmentLength, getNbsHeader, getPreferredTransferMode, getSourcePort, isForCdmaNetwork, isMaximumFragmentLengthSet, isPortNumberInEachFragment, setForCdmaNetwork, setMaximumFragmentLength, setPreferredTransferMode
 
Methods inherited from class ie.ncl.msg.BinaryMessage
getBody, getBytes, setBody, setBytes, size
 
Methods inherited from class ie.ncl.msg.Message
getAttribute, getAttributes, getCorrelationID, getDestination, getID, getSource, getType, putAttribute, removeAttribute, setAttributes, setCorrelationID, setDestination, setID, setSource, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_WIDTH

public static final int MAX_WIDTH
This is the maximum width of a LogoMessage bitmap.

See Also:
Constant Field Values

MAX_HEIGHT

public static final int MAX_HEIGHT
This is the maximum height of a LogoMessage bitmap.

See Also:
Constant Field Values
Constructor Detail

PictureMessage

public PictureMessage(Address addr,
                      ie.ncl.util.bin.Bitmap bm,
                      java.lang.String text,
                      boolean unicode)
               throws NBSException
Create a picture message. A picture message can have additional text prepended to the message. This can then be sent to a mobile phone using NarrowBandSocket.send().

Throws:
NBSException
See Also:
NarrowBandSocket.send(SmartMessage), Bitmap

PictureMessage

public PictureMessage(Address addr,
                      ie.ncl.util.bin.Bitmap bm,
                      java.lang.String text)
               throws NBSException
Throws:
NBSException

PictureMessage

public PictureMessage(Address addr,
                      byte[] bm,
                      java.lang.String text)
               throws NBSException
Throws:
NBSException

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