public abstract void writeExternal (ObjectOutput out) throws IOException

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Parameters:
out    the stream to write the object to

Exceptions:
IOException    Includes any I/O exceptions that may occur