Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
public interface

Externalizable

implements Serializable
java.io.Externalizable

Class Overview

Defines an interface for classes that want to be serializable, but have their own binary representation.

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)

Added in API level 1

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 input .
ClassNotFoundException if the class of the instance being loaded cannot be found.

public abstract void writeExternal ( ObjectOutput output)

Added in API level 1

Writes the receiver to the ObjectOutput output .

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