public abstract static class EObjectInputStream.Key<T>
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Method and Description |
---|---|
abstract T |
readExternal(EObjectInputStream in)
The oclass implements the readExternal method to restore an
object by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
void |
readExternal(java.io.ObjectInput in) |
abstract void |
writeExternal(EObjectOutputStream out,
T obj)
The class implements the writeExternal method to save an object
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
void |
writeExternal(java.io.ObjectOutput out) |
public Key(T obj)
public Key()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public abstract void writeExternal(EObjectOutputStream out, T obj) throws java.io.IOException
out
- the EObjectOutputStream stream to write the object toobj
- object to savejava.io.IOException
- Includes any I/O exceptions that may occurpublic abstract T readExternal(EObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- the stream to read data from in order to restore the objectjava.io.IOException
- if I/O errors occurjava.lang.ClassNotFoundException
- If the class for an object being
restored cannot be found.