mhframework
Interface MHSerializable
- All Superinterfaces:
- java.io.Serializable
public interface MHSerializable
- extends java.io.Serializable
Interface for classes that must be transmitted across a network
or written to a file. The way this class is intended to be used
is as follows: When an object implementing this interface is
ready to be sent through a stream, the
getSerializableVersion()
method should be called to
obtain a guaranteed serializable version of the object. When
an instance is received from a stream, it should be sent to the
deserialize()
method, which should reconstitute the
parameter's members into their regular forms.
Method Summary |
java.io.Serializable |
getSerializableVersion()
Creates an object that contains only the serializable parts
of this class so that a representative object can be sent
through a stream. |
getSerializableVersion
java.io.Serializable getSerializableVersion()
- Creates an object that contains only the serializable parts
of this class so that a representative object can be sent
through a stream. The object returned by this method is
eligible to be transmitted across a network or saved to a
file.
- Returns:
- A serializable equivalent of the class that implements
this interface.