public class UuidSerializer extends Object implements Serializer<UUID>
UUID that transforms into a byte array.| Constructor and Description |
|---|
UuidSerializer() |
| Modifier and Type | Method and Description |
|---|---|
SerializerFormatDefinition |
getFormatDefinition()
Get the definition that describes what this serializer can
read and write.
|
UUID |
read(StreamingInput in)
Read an object from the specified stream.
|
void |
write(UUID object,
String name,
StreamingOutput stream)
Write and object to the specified stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromBytes, fromBytes, toBytes, toBytespublic UUID read(StreamingInput in) throws IOException
Serializerread in interface Serializer<UUID>IOExceptionpublic void write(UUID object, String name, StreamingOutput stream) throws IOException
Serializerwrite in interface Serializer<UUID>object - object to writename - the name it should have in the streamstream - the stream to useIOExceptionpublic SerializerFormatDefinition getFormatDefinition()
SerializergetFormatDefinition in interface Serializer<UUID>Copyright © 2017. All rights reserved.