Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.common.mms
Class MMSDocument

java.lang.Object
  |
  +--oracle.panama.messaging.common.mms.MMSDocument

public class MMSDocument
extends java.lang.Object

Field Summary
static java.lang.String MULTIPART_MIXED
           
static java.lang.String MULTIPART_RELATED
           

 

Constructor Summary
MMSDocument(java.lang.String backgroundColor)
          Specify the background color of the root-layout.
MMSDocument(java.lang.String backgroundColor, int width, int height)
          Specify the background color and maximum width and height (in pixels) that the document covers.

 

Method Summary
 void addRegion(MMSRegion region)
          Add a region into document.
 void deleteRegion(int index)
          delete region by index
 MMSRegion getRegion(int index)
          get region by index
static void main(java.lang.String[] args)
           
 int numberOfRegions()
          total number of regions in current document
 Message toMessage()
          converts current document to a oracle.panama.messaging.common.Message object so that it could be processed by Push
static Message toMessage(java.lang.String smilFilename, java.lang.String[] mediaFilenames)
          Construct Message object from SMIL file created by user and media files referenced in the SMIL file.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

MULTIPART_RELATED

public static final java.lang.String MULTIPART_RELATED
See Also:
Constant Field Values

MULTIPART_MIXED

public static final java.lang.String MULTIPART_MIXED
See Also:
Constant Field Values
Constructor Detail

MMSDocument

public MMSDocument(java.lang.String backgroundColor,
                   int width,
                   int height)
Specify the background color and maximum width and height (in pixels) that the document covers.

MMSDocument

public MMSDocument(java.lang.String backgroundColor)
Specify the background color of the root-layout.
Method Detail

addRegion

public void addRegion(MMSRegion region)
Add a region into document.

numberOfRegions

public int numberOfRegions()
total number of regions in current document

getRegion

public MMSRegion getRegion(int index)
get region by index

deleteRegion

public void deleteRegion(int index)
delete region by index

toMessage

public static Message toMessage(java.lang.String smilFilename,
                                java.lang.String[] mediaFilenames)
                         throws java.io.IOException
Construct Message object from SMIL file created by user and media files referenced in the SMIL file. In this release, all filenames must be in current working directory and no path in filename strings as well as inside SMIL file. For example: "abc.jpg" is ok but "d:/temp/abc.jpg", "/tmp/abc.jpg" or "./abc.jpg" may not be used in the parameter or in the SMIL file (i.e. followed by 'src=').
This method doesn't modify the SMIL file.
Parameters:
smilFilename - file name of SMIL file. Filename may not contain path.
mediaFilenames - file names of media files (e.g. image files, text files and voice files etc.). Filename may not contain path.
java.io.IOException

toMessage

public Message toMessage()
converts current document to a oracle.panama.messaging.common.Message object so that it could be processed by Push

main

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

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.