peer2me.message
Interface Serializable
- All Known Implementing Classes:
- SendableNodeInfo
public interface Serializable
This interface must be implemented by all Java objects that are going to be sent over the network as
serializable objects.
Classes that implements this interface MUST have a public empty constructor that takes no arguments.
It may also have additional constructors. Also, the class that implements this interface MUST, in the
deserialize()
method refer to it's own classname with full packagename. For instance, the class
SendableNodeInfo
, refers to itself as: peer2me.message.SendableNodeInfo
- Author:
- saxlund
Method Summary |
void |
deSerialize(java.io.DataInputStream dis,
java.util.Stack stack)
|
void |
serialize(java.io.DataOutputStream dos,
java.util.Stack stack)
|
serialize
void serialize(java.io.DataOutputStream dos,
java.util.Stack stack)
throws java.io.IOException
- Throws:
java.io.IOException
deSerialize
void deSerialize(java.io.DataInputStream dis,
java.util.Stack stack)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException