Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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 Summary
Object  writeReplace()
Return an object to be written to the stream instead of this object.
 

Method Detail

writeReplace

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

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.