public interface Externalizable extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
readExternal(ObjectInput input)
Reads the next object from the ObjectInput
input . |
void |
writeExternal(ObjectOutput output)
Writes the receiver to the ObjectOutput
output . |
void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
input
.input
- the ObjectInput from which the next object is read.IOException
- if an error occurs attempting to read from input
.ClassNotFoundException
- if the class of the instance being loaded cannot be found.void writeExternal(ObjectOutput output) throws IOException
output
.output
- the ObjectOutput to write the object to.IOException
- if an error occurs attempting to write to output
.