ExternalizableNameExternalizableSynopsis
DescriptionThe Externalizable interface is an extension of the Serializable interface. Whereas a Serializable object is automatically saved and loaded (in most cases), an Externalizable object has sole responsibility for saving and loading its state via the writeExternal() and readExternal() methods. If a class implements the Externalizable interface, it must handle any versioning issues that occur. The methods of Externalizable are public, which can pose a security risk. If security is a concern, Externalizable objects should not write or read sensitive information, or the Serializable interface should be used instead. Interface Declaration
public abstract interface java.io.Externalizable extends java.io.Serializable { // Methods public abstract void readExternal(ObjectInput in); public abstract void writeExternal(ObjectOutput out); } MethodsreadExternal
public abstract void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
writeExternal
public abstract void writeExternal(ObjectOutput out) throws IOException
See AlsoClassNotFoundException, DataInput, DataOutput, IOException, ObjectInput, ObjectOutput, Serializable |
|