at.spardat.xma.serializer
Interface XmaSerializable


public interface XmaSerializable

Objects implementing this interface may be directy read and written from and to XmaOutput/XmaInput without relying on the standard java serialization mechanism.

Classes implementing this interface must have a public default constructor. It will be called before calling deserialize to create an instance.


Method Summary
 void deserialize(XmaInput in)
          Reads the information from in and sets instance variable's values in this.
 void serialize(XmaOutput out)
          Maps the information in this to out.
 

Method Detail

serialize

public void serialize(XmaOutput out)
               throws java.io.IOException
Maps the information in this to out.

Throws:
java.io.IOException

deserialize

public void deserialize(XmaInput in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reads the information from in and sets instance variable's values in this.

Throws:
java.io.IOException
java.lang.ClassNotFoundException