Externalizable
classes that define readObject()
or writeObject()
methods. These methods are not called for serialization of
Externalizable
objects.
Example:
abstract class Crucial implements Externalizable {
int value;
private void readObject(ObjectInputStream in) {
value = in.readInt();
}
}