加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090321133053/http://developer.android.com:80/reference/java/io/Externalizable.html
public interface

Externalizable

implements Serializable
java.io.Externalizable

Class Overview

Objects that want to be serialized/deserialized using ObjectOutputStream/ObjectInputStream but defining their own byte representation should implement this interface.

Summary

Public Methods
abstract void readExternal(ObjectInput input)
Reads the next object from the ObjectInput input
abstract void writeExternal(ObjectOutput output)
Writes the receiver to the ObjectOutput output.

Public Methods

public abstract void readExternal (ObjectInput input)

Reads the next object from the ObjectInput input

Parameters
input the ObjectInput from which the next object is read
Throws
IOException If an error occurs attempting to read from this ObjectInput.
ClassNotFoundException If the class of the instance being loaded cannot be found

public abstract void writeExternal (ObjectOutput output)

Writes the receiver to the ObjectOutput output.

Parameters
output an ObjectOutput where to write the object
Throws
IOException If an error occurs attempting to write to the ObjectOutput.