jSyncManager

org.jSyncManager.API.Protocol.Util
Class CMP_Address

java.lang.Object
  extended byorg.jSyncManager.API.Protocol.Util.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.

Version:
$Revision: 1.1 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2004/07/20 01:22:48 $.

Field Summary
(package private)  java.lang.String address
          The address information from the preferences exchange response argument.
 
Constructor Summary
CMP_Address()
          Create a new instance of the CMP Communication Preferences class.
CMP_Address(byte[] inData)
          Construct a new CMP Address instance from an array of bytes.
CMP_Address(java.lang.String addr)
          Create a new instance of the CMP Address class using the specified address.
 
Method Summary
 java.lang.String getAddress()
          Retrieves the address contained within this object.
 byte[] object2Bytes()
          Converts this object to an array of bytes suitable for transmission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

java.lang.String address
The address information from the preferences exchange response argument.

Constructor Detail

CMP_Address

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


CMP_Address

public CMP_Address(java.lang.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 Detail

getAddress

public java.lang.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.

jSyncManager

Copyright (c) 1999 - 2004 Brad BARCLAY and others. All Rights Reserved.