gr.uoa.di.madgik.commons.state.store.data
Interface ISerializable

All Known Implementing Classes:
TestClassISerializable

public interface ISerializable

Interace that all objects that want to be stored through the StateManager.Put(String, ISerializable) need to implement. These objects must also have a default constructor publicly accessible.

Author:
gpapanikos

Method Summary
 void Deserialize(byte[] array)
          Deserializes the the information as serialized by the implementing object's Serialize()
 byte[] Serialize()
          Serializes the needed information for the interface implementing object instance
 

Method Detail

Serialize

byte[] Serialize()
                 throws java.lang.Exception
Serializes the needed information for the interface implementing object instance

Returns:
the byte array containing the information capable of restoring the implementing objects state
Throws:
java.lang.Exception - The serialization could not be performed

Deserialize

void Deserialize(byte[] array)
                 throws java.lang.Exception
Deserializes the the information as serialized by the implementing object's Serialize()

Parameters:
array - The payload that was previously created by Serialize()
Throws:
java.lang.Exception - The deserialization could not be performed