public class RevisionNameSerializer extends AbstractElementSerializer<RevisionName>
Constructor and Description |
---|
RevisionNameSerializer()
Create a new instance of a RevisionNameSerializer
|
Modifier and Type | Method and Description |
---|---|
RevisionName |
deserialize(BufferHandler bufferHandler)
Deserialize an element from a BufferHandler
|
static RevisionName |
deserialize(byte[] in)
A static method used to deserialize a RevisionName from a byte array.
|
static RevisionName |
deserialize(byte[] in,
int start)
A static method used to deserialize a RevisionName from a byte array.
|
RevisionName |
deserialize(ByteBuffer buffer)
Deserialize an element from a ByteBuffer
|
RevisionName |
fromBytes(byte[] in)
A method used to deserialize a RevisionName from a byte array.
|
RevisionName |
fromBytes(byte[] in,
int start)
A method used to deserialize a RevisionName from a byte array.
|
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, getType
public RevisionNameSerializer()
public static RevisionName deserialize(byte[] in)
in
- The byte array containing the RevisionNamepublic static 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 serializepublic static 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 IOException
bufferHandler
- The incoming bufferHandlerIOException
- If the deserialization failedpublic RevisionName deserialize(ByteBuffer buffer) throws IOException
buffer
- The incoming ByteBufferIOException
- If the deserialization failedCopyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.