Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common.ems
Class PredefinedSound

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

All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class PredefinedSound
extends EMSService

EMS service: predefined sound.

See Also:
EMSService, Serialized Form

Constructor Summary
PredefinedSound()

Method Summary
boolean equals(java.lang.Object other)
Compares two predefined sound for equality.
byte[] getBytes()
Gets complete predefined sound.
int hashCode()
Generates and returns hashcode for the instance.
void setSound(int sound)
Sets the predefined sound.
int size()
Gets size of the predefined sound.

Methods inherited from class oracle.panama.messaging.common.ems.EMSService
compareTo, getData, getLength, getPosition, setLength, setPosition

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

Constructor Detail

PredefinedSound

public PredefinedSound()

Method Detail

equals

public boolean equals(java.lang.Object other)
Compares two predefined sound for equality.
Parameters:
other - predefined sound object to be tested for equality with this object.
Returns:
true if the two objects are equal else returns false.

getBytes

public byte[] getBytes()
Gets complete predefined sound.
Overrides:
getBytes in class EMSService
Returns:
header and data part of the predefined sound as byte array.

hashCode

public int hashCode()
Generates and returns hashcode for the instance.
Returns:
hash code.

setSound

public void setSound(int sound)
Sets the predefined sound.
Parameters:
sound - to be set.

size

public int size()
Gets size of the predefined sound.
Overrides:
size in class EMSService
Returns:
size.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.