Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common.ems
Class UserDefinedSound

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

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

public class UserDefinedSound
extends EMSService

EMS service: user defined sound.

See Also:
EMSService, Serialized Form

Constructor Summary
UserDefinedSound()

Method Summary
boolean equals(java.lang.Object other)
Checks for equality of two UserdefinedSound objects.
byte[] getBytes()
Gets complete userdefined sound.
byte[] getData()
Gets only the data part of the userdefined sound.
int hashCode()
Gets hash code for the instance.
void setSound(byte[] sound)
Sets the sound.
int size()
Gets the size of the Userdefined sound service.

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

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

Constructor Detail

UserDefinedSound

public UserDefinedSound()

Method Detail

equals

public boolean equals(java.lang.Object other)
Checks for equality of two UserdefinedSound objects.
Parameters:
other - UserdefinedSound object to test for equality with this object.
Returns:
true if the two objects are equal else returns false.

getBytes

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

getData

public byte[] getData()
Gets only the data part of the userdefined sound.
Overrides:
getData in class EMSService
Returns:

hashCode

public int hashCode()
Gets hash code for the instance.
Returns:
hash code.

setSound

public void setSound(byte[] sound)
Sets the sound.
Parameters:
sound -

size

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

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.