Build 1.0_r1(from source)

java.io
Interface Externalizable

All Superinterfaces:
Serializable

public interface Externalizable
extends Serializable

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


Method Summary
 void readExternal(ObjectInput input)
          Reads the next object from the ObjectInput input
 void writeExternal(ObjectOutput output)
          Writes the receiver to the ObjectOutput output.
 

Method Detail

readExternal

void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
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

writeExternal

void writeExternal(ObjectOutput output)
                   throws IOException
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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature