org.jSyncManager.API.Protocol.Util

Class CMP_Address


public class CMP_Address
extends java.lang.Object

This class is used to manage the address string reported by the CMP Communication Preferences Exchange response.

Constructor Summary

CMP_Address()
Create a new instance of the CMP Communication Preferences class.
CMP_Address(String addr)
Create a new instance of the CMP Address class using the specified address.
CMP_Address(byte[] inData)
Construct a new CMP Address instance from an array of bytes.

Method Summary

String
getAddress()
Retrieves the address contained within this object.
byte[]
object2Bytes()
Converts this object to an array of bytes suitable for transmission.

Constructor Details

CMP_Address

public CMP_Address()
Create a new instance of the CMP Communication Preferences class.

CMP_Address

public CMP_Address(String addr)
Create a new instance of the CMP Address class using the specified address.
Parameters:
addr - the address string to use in this packet.

CMP_Address

public CMP_Address(byte[] inData)
Construct a new CMP Address instance from an array of bytes.
Parameters:
inData - the data array to be parsed.

Method Details

getAddress

public String getAddress()
Retrieves the address contained within this object.
Returns:
the address contained within this object.

object2Bytes

public byte[] object2Bytes()
Converts this object to an array of bytes suitable for transmission.
Returns:
this object to an array of bytes suitable for transmission.