public static class Fqn.Externalizer extends AbstractExternalizer<Fqn>
Constructor and Description |
---|
Externalizer() |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends Fqn>> |
getTypeClasses()
Returns a collection of Class instances representing the types that this
AdvancedExternalizer can marshall.
|
Fqn |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
Fqn fqn)
Write the object reference to the stream.
|
getId
public void writeObject(ObjectOutput output, Fqn fqn) throws IOException
Externalizer
output
- the object output to write tofqn
- the object reference to writeIOException
- if an I/O error occurspublic Fqn 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 Set<Class<? extends Fqn>> getTypeClasses()
AdvancedExternalizer
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.