public abstract class InstanceReusingAdvancedExternalizer<T> extends AbstractExternalizer<T>
Constructor and Description |
---|
InstanceReusingAdvancedExternalizer() |
InstanceReusingAdvancedExternalizer(boolean hasChildren) |
Modifier and Type | Method and Description |
---|---|
abstract T |
doReadObject(ObjectInput input) |
abstract void |
doWriteObject(ObjectOutput output,
T object) |
T |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
T object)
Write the object reference to the stream.
|
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeClasses
public InstanceReusingAdvancedExternalizer()
public InstanceReusingAdvancedExternalizer(boolean hasChildren)
public final void writeObject(ObjectOutput output, T object) throws IOException
Externalizer
output
- the object output to write toobject
- the object reference to writeIOException
- if an I/O error occurspublic abstract void doWriteObject(ObjectOutput output, T object) throws IOException
IOException
public final T readObject(ObjectInput input) throws IOException, ClassNotFoundException
Externalizer
Externalizer.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 fromIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundpublic abstract T doReadObject(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.