All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface java.io.Replaceable

public interface Replaceable
extends Serializable
The Replaceable interface allows a serializable class to designate an alternative object to be used when the object is written to the stream. Replaceable extends serializable to specify that Replaceable applies only to Serializable objects. An Externalizable object uses the same replacement mechanism by implementing both Externalizable and Replaceable.

Since:
JDK1.2
See Also:
ObjectOutputStream

Method Index

 o writeReplace()
Return an object to be written to the stream instead of this object.

Methods

 o writeReplace
public abstract Object writeReplace()
Return an object to be written to the stream instead of this object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature