moka.io
Class Serializable

java.lang.Object
  |
  +--moka.lang.Object
        |
        +--moka.io.Serializable
Direct Known Subclasses:
SerialEntry, SerialList

public abstract class Serializable
extends Object

This class implements the hability to serialize and write an object to a stream and interfaces the hability to read and deserialize an object from a stream.

Since:
MDK1.0a

Constructor Summary
Serializable()
           
 
Method Summary
abstract  moka.lang.Object deserialize(moka.io.IOStream ios)
          Reads and deserializes an object from a given stream.
abstract  void serialize(moka.io.IOStream ios)
          Serializes and writes this object to a given stream.
 
Methods inherited from class moka.lang.Object
equals, finalize, getClassName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Serializable

public Serializable()
Method Detail

serialize

public abstract void serialize(moka.io.IOStream ios)
Serializes and writes this object to a given stream. Since this method is an abstract one, subclasses of Serializable must overwrite this method.

Parameters:
ios - The stream to write to

deserialize

public abstract moka.lang.Object deserialize(moka.io.IOStream ios)
Reads and deserializes an object from a given stream. Since this method is an abstract one, subclasses of Serializable must overwrite this method.

Parameters:
ios - The stream to read from
Returns:
The object read