Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common.ems
Class EMSService

java.lang.Object
  extended byoracle.panama.messaging.common.ems.EMSService

All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
LargeAnimation, LargePicture, PredefinedAnimation, PredefinedSound, SmallAnimation, SmallPicture, TextFormating, UserDefinedSound, VariablePicture, VCalService, VCardService

public class EMSService
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

The base class of all EMS service classes.

See Also:
EMSMessage, TextFormating, PredefinedSound, UserDefinedSound, LargePicture, SmallPicture, VariablePicture, PredefinedAnimation, LargeAnimation, SmallAnimation, Serialized Form

Constructor Summary
EMSService()

Method Summary
int compareTo(java.lang.Object o)
Compares two EMSService objects for equality.
byte[] getBytes()
getBytes must be overridden.
byte[] getData()
This method must be overridden by services that contains data.
int getLength()
This method must be overridden by services that contains length field.
int getPosition()
Gets the position of the service.
void setLength(int len)
Must be overridden by services that contains length field.
void setPosition(int pos)
Sets the position of the service.
int size()
This method must be overridden.

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

Constructor Detail

EMSService

public EMSService()

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compares two EMSService objects for equality.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - object to check for equality with this object.
Returns:
true if two objects are equal otherwise returns false.

getBytes

public byte[] getBytes()
getBytes must be overridden. Calling this method will throws UnsupportedOperationException.
Returns:
byte array.

getData

public byte[] getData()
This method must be overridden by services that contains data.
Returns:
byte array.

getLength

public int getLength()
This method must be overridden by services that contains length field.
Returns:
0

getPosition

public int getPosition()
Gets the position of the service.
Returns:

setLength

public void setLength(int len)
Must be overridden by services that contains length field.
Parameters:
len -

setPosition

public void setPosition(int pos)
Sets the position of the service.
Parameters:
pos -

size

public int size()
This method must be overridden. If this method is called it throws UnsupportedOperationException.
Returns:

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.