public interface Externalizer<T>
Modifier and Type | Method and Description |
---|---|
Class<? extends T> |
getTargetClass()
Returns the target class of the object to externalize.
|
T |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
T object)
Writes the object reference to the stream.
|
void writeObject(ObjectOutput output, T object) throws IOException
output
- the object output to write toobject
- the object reference to writeIOException
- if an I/O error occursT readObject(ObjectInput input) throws IOException, ClassNotFoundException
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 from which to readIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundCopyright © 2016 JBoss by Red Hat. All rights reserved.