Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Externalizable

public interface Externalizable
implements Serializable

java.io.Externalizable


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

readExternal

Added in API level 1
void readExternal (ObjectInput input)

Reads the next object from the ObjectInput input.

Parameters
input ObjectInput: 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.

writeExternal

Added in API level 1
void writeExternal (ObjectOutput output)

Writes the receiver to the ObjectOutput output.

Parameters
output ObjectOutput: the ObjectOutput to write the object to.
Throws
IOException if an error occurs attempting to write to output.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.