Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common.ems
Class VCardService

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

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

public class VCardService
extends EMSService
See Also:
Serialized Form

Constructor Summary
VCardService()

Method Summary
boolean equals(java.lang.Object other)
Checks for equality of two VCardService objects.
byte[] getBytes()
Gets the header part of the service.
byte[] getData()
Gets the data part of the serice.
int hashCode()
Gets hash code for the instance.
void setCard(VCard card)
Sets the vCard data for the service.
void setEncodedVCard(byte[] card)
Sets the vCard data for the service.
void setLength(int len)
Sets the length of the service.
void setVCardString(java.lang.String card)
Sets the vCard data for the service.
int size()
Gets size of the VCardService.

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

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

Constructor Detail

VCardService

public VCardService()

Method Detail

equals

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

getBytes

public byte[] getBytes()
Gets the header part of the service.
Overrides:
getBytes in class EMSService
Returns:
Header of the vCard EMS

getData

public byte[] getData()
Gets the data part of the serice.
Overrides:
getData in class EMSService
Returns:
The data: vCard contents.

hashCode

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

setCard

public void setCard(VCard card)
Sets the vCard data for the service.
Parameters:
card - vCard represented using VCard object.

setEncodedVCard

public void setEncodedVCard(byte[] card)
Sets the vCard data for the service.
Parameters:
card - vCard represented using encoded String object.

setLength

public void setLength(int len)
Sets the length of the service. Users should not call this method.
Overrides:
setLength in class EMSService
Parameters:
len - length of the service.

setVCardString

public void setVCardString(java.lang.String card)
Sets the vCard data for the service.
Parameters:
card - vCard represented using Sting object.

size

public int size()
Gets size of the VCardService.
Overrides:
size in class EMSService
Returns:
The size of the EMSService : header + data(vCard in this case)

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.