org.walluck.oscar
Class AIMFingerPrintInfo

java.lang.Object
  extended byorg.walluck.oscar.AIMFingerPrintInfo

public class AIMFingerPrintInfo
extends java.lang.Object

This is all for fingerprinting clients. This isn't much of a help since many different clients use the same fingerprint.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
AIMFingerPrintInfo()
          Creates a new empty fingerprint.
AIMFingerPrintInfo(int clientId, byte[] data)
          Creates a new fingerprint.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines if two fingerprints are equal.
 int getClientId()
          Get the value of clientId.
 byte[] getData()
          Get the value of data.
static byte[] getFingerPrintData(int clientId)
          Lookup fingerprint data by clientId.
static int getFingerPrintId(byte[] data)
          Find the client id with the given by data.
 int hashCode()
          Return the hash code of this fingerprint.
 void setClientId(int clientId)
          Set the value of clientId.
 void setData(byte[] data)
          Set the value of data.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AIMFingerPrintInfo

public AIMFingerPrintInfo()
Creates a new empty fingerprint.


AIMFingerPrintInfo

public AIMFingerPrintInfo(int clientId,
                          byte[] data)
Creates a new fingerprint.

Parameters:
clientId - the client ID
data - the fingerprint data
Method Detail

getClientId

public int getClientId()
Get the value of clientId.

Returns:
value of clientId.

setClientId

public void setClientId(int clientId)
Set the value of clientId.

Parameters:
clientId - Value to assign to clientId.

getData

public byte[] getData()
Get the value of data.

Returns:
value of data.

setData

public void setData(byte[] data)
Set the value of data.

Parameters:
data - Value to assign to data.

equals

public boolean equals(java.lang.Object obj)
Determines if two fingerprints are equal.

Parameters:
obj - the fingerprint to test
Returns:
true if equal, false otherwise

hashCode

public int hashCode()
Return the hash code of this fingerprint.

Returns:
the hash code

getFingerPrintData

public static byte[] getFingerPrintData(int clientId)
Lookup fingerprint data by clientId.

Parameters:
clientId - the client id to find
Returns:
the fingerprint data belonging to the specified client id
See Also:
AIMConstants

getFingerPrintId

public static int getFingerPrintId(byte[] data)
Find the client id with the given by data. This is similar to equals in the sense that AIMConstants.AIM_CLIENTTYPE_UNKNOWN means false and it means true otherwise.

Parameters:
data - the data to test
Returns:
the client id if found or AIMConstants.AIM_CLIENTTYPE_UNKNOWN otherwise
See Also:
AIMConstants