class NameRevisionSerializer extends AbstractElementSerializer<NameRevision>
| Modifier and Type | Field and Description |
|---|---|
(package private) static NameRevisionSerializer |
INSTANCE
A static instance of a NameRevisionSerializer
|
| Modifier | Constructor and Description |
|---|---|
private |
NameRevisionSerializer()
Create a new instance of a NameRevisionSerializer
|
| Modifier and Type | Method and Description |
|---|---|
NameRevision |
deserialize(BufferHandler bufferHandler)
Deserialize an element from a BufferHandler
|
(package private) static NameRevision |
deserialize(byte[] in)
A static method used to deserialize a NameRevision from a byte array.
|
(package private) static NameRevision |
deserialize(byte[] in,
int start)
A static method used to deserialize a NameRevision from a byte array.
|
NameRevision |
deserialize(java.nio.ByteBuffer buffer)
Deserialize an element from a ByteBuffer
|
NameRevision |
fromBytes(byte[] in)
A static method used to deserialize a NameRevision from a byte array.
|
NameRevision |
fromBytes(byte[] in,
int start)
A static method used to deserialize a NameRevision from a byte array.
|
(package private) static byte[] |
serialize(byte[] buffer,
int start,
NameRevision revisionName)
Serialize a NameRevision
|
byte[] |
serialize(NameRevision revisionName)
Produce the byte[] representation of the element
|
compare, getComparator, getTypestatic final NameRevisionSerializer INSTANCE
private NameRevisionSerializer()
static NameRevision deserialize(byte[] in)
in - The byte array containing the NameRevisionstatic NameRevision deserialize(byte[] in, int start)
in - The byte array containing the NameRevisionstart - the position in the byte[] we will deserialize the NameRevision frompublic NameRevision fromBytes(byte[] in)
in - The byte array containing the NameRevisionpublic NameRevision fromBytes(byte[] in, int start)
in - The byte array containing the NameRevisionstart - the position in the byte[] we will deserialize the NameRevision frompublic byte[] serialize(NameRevision revisionName)
revisionName - The element to serializestatic byte[] serialize(byte[] buffer,
int start,
NameRevision revisionName)
buffer - the Buffer that will contain the serialized valuestart - the position in the buffer we will store the serialized NameRevisionvalue - the value to serializepublic NameRevision deserialize(BufferHandler bufferHandler) throws java.io.IOException
bufferHandler - The incoming bufferHandlerjava.io.IOException - If the deserialization failedpublic NameRevision deserialize(java.nio.ByteBuffer buffer) throws java.io.IOException
buffer - The incoming ByteBufferjava.io.IOException - If the deserialization failed