public class UUIDExternalizer extends Object implements Externalizer<UUID>
Externalizer
for UUID
instances.Constructor and Description |
---|
UUIDExternalizer() |
Modifier and Type | Method and Description |
---|---|
Class<UUID> |
getTargetClass()
Returns the target class of the object to externalize.
|
UUID |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
UUID uuid)
Writes the object reference to the stream.
|
public void writeObject(ObjectOutput output, UUID uuid) throws IOException
Externalizer
writeObject
in interface Externalizer<UUID>
output
- the object output to write touuid
- the object reference to writeIOException
- if an I/O error occurspublic UUID readObject(ObjectInput input) throws IOException
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.readObject
in interface Externalizer<UUID>
input
- the object input from which to readIOException
- if an I/O error occurspublic Class<UUID> getTargetClass()
Externalizer
getTargetClass
in interface Externalizer<UUID>
Copyright © 2017 JBoss by Red Hat. All rights reserved.