service.id
Class IdentificationData

java.lang.Object
  extended by service.id.IdentificationData
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AllIdData, PingData, ProcessIdData

public abstract class IdentificationData
extends java.lang.Object
implements java.io.Serializable

Abstract data for the identification service. This class is specialized depending of the concrete data to store.

See Also:
Serialized Form

Constructor Summary
IdentificationData()
           
 
Method Summary
 byte[] serialize()
          When using UDP socket, we must manage data under a byte array.
static IdentificationData unserialize(byte[] data)
          When using UDP socket, we must manage data under a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentificationData

public IdentificationData()
Method Detail

serialize

public byte[] serialize()
When using UDP socket, we must manage data under a byte array.

Returns:
the serialized version of the current data

unserialize

public static IdentificationData unserialize(byte[] data)
When using UDP socket, we must manage data under a byte array.

Parameters:
data - the serialized version of a data
Returns:
the data object corresponding to the serialized version