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
getTypeClasses
public InstanceReusingAdvancedExternalizer()
public InstanceReusingAdvancedExternalizer(boolean hasChildren)
public final void writeObject(ObjectOutput output, T object)
Externalizer
output
- the object output to write toobject
- the object reference to writepublic abstract void doWriteObject(ObjectOutput output, T object)
public final T readObject(ObjectInput input)
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 frompublic abstract T doReadObject(ObjectInput input)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.