CTL.Serialize
Interface Writable
- All Known Implementing Classes:
- AnyObj, CArray, DoubleDash, Except, FID, Graph, GroupInfo, Header, IPaddr, Location, MyRef, Node, PeerID, Reference, rPointer, Sibling, Tree, TripleDash, Tupel, WriteTable
public interface Writable
The Writable interface is an alternative method of serializing data via
OIStream/OOStream, where the reading side must know exactly which type
it wants to read. This is useful to read/write containers to a stream,
like a header with a known structure. By using the Writable interface,
information on how to read/write data can be encapsulated inside the
data structures itself.
read
void read(SerialIn in)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
write
void write(SerialOut out)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
CTLException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException