public abstract class InstanceReusingAdvancedExternalizer<T> extends AbstractExternalizer<T>
| Constructor and Description |
|---|
InstanceReusingAdvancedExternalizer() |
InstanceReusingAdvancedExternalizer(boolean hasChildren) |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
doReadObject(java.io.ObjectInput input) |
abstract void |
doWriteObject(java.io.ObjectOutput output,
T object) |
T |
readObject(java.io.ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(java.io.ObjectOutput output,
T object)
Write the object reference to the stream.
|
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeClassespublic InstanceReusingAdvancedExternalizer()
public InstanceReusingAdvancedExternalizer(boolean hasChildren)
public final void writeObject(java.io.ObjectOutput output,
T object)
throws java.io.IOException
Externalizeroutput - the object output to write toobject - the object reference to writejava.io.IOException - if an I/O error occurspublic abstract void doWriteObject(java.io.ObjectOutput output,
T object)
throws java.io.IOException
java.io.IOExceptionpublic final T readObject(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException
ExternalizerExternalizer.writeObject(ObjectOutput, Object) method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.input - the object input to read fromjava.io.IOException - if an I/O error occursjava.lang.ClassNotFoundException - if a class could not be foundpublic abstract T doReadObject(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException