org.egothor.core
Interface Saveable


public interface Saveable

The Saveable interface should be implemented by object which can be loaded/saved from/to streams.

Author:
Leo Galambos

Method Summary
 void load(DataInput i)
          Load the object using the given input stream.
 void store(DataOutput o)
          Stores the object to the given output stream.
 

Method Detail

store

void store(DataOutput o)
           throws java.io.IOException
Stores the object to the given output stream.

Parameters:
o - output stream
Throws:
java.io.IOException - if an I/O error occurs

load

void load(DataInput i)
          throws java.io.IOException
Load the object using the given input stream.

Parameters:
i - the input stream used to load the object
Throws:
java.io.IOException - if an I/O error occurs