Interface como.io.Saveable
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface como.io.Saveable

public interface Saveable
extends Object
Objects that may be saved/loaded from/to disk/network should implement this interface. Then they can be converted using the ObjectXXXStream!

Method Index

 o load(ObjectInputStream)
This method is called when the Object is loaded! It gets instantiated and then load(i) will be called.
 o save(ObjectOutputStream)
This method is called when the Object is saved! save(o) will be called.

Methods

 o load
  public abstract void load(ObjectInputStream i) throws IOException
This method is called when the Object is loaded! It gets instantiated and then load(i) will be called.
Parameters:
i - ObjectInputStream from where you can read your saved data.
 o save
  public abstract void save(ObjectOutputStream o) throws IOException
This method is called when the Object is saved! save(o) will be called. You have to write any necessary data to it (which will be loaded afterwards by load() from an ObjectInputStream).
Parameters:
o - ObjectOutputStream where you have to write your data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index