org.garret.serme
Interface ISerializable

All Known Subinterfaces:
IComparator
All Known Implementing Classes:
AbstractComparator, Persistent

public interface ISerializable

Interface which should be implemented by any object which can be serialized. Implementation of writeObject readObject methods should stpre/fetch content to of the object to the provided stream. Order of storing/fetching fields should be the same in both methods.


Method Summary
 void readObject(IInputStream in)
          Fetch object fields from the stream
 void writeObject(IOutputStream out)
          Store object fields in the stream.
 

Method Detail

readObject

public void readObject(IInputStream in)
Fetch object fields from the stream

Parameters:
in - stream from which object data should be fetched

writeObject

public void writeObject(IOutputStream out)
Store object fields in the stream.

Parameters:
out - stream to which object is written