Android
java.io
public interface

java.io.Externalizable

java.io.Externalizable Serializable

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

Summary

Public Methods

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

Details

Public Methods

public 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 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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56