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