public class ByteSerializer extends AbstractElementSerializer<Byte>
| Modifier and Type | Field and Description |
|---|---|
static ByteSerializer |
INSTANCE
A static instance of a ByteSerializer
|
| Modifier and Type | Method and Description |
|---|---|
Byte |
deserialize(BufferHandler bufferHandler)
Deserialize an element from a BufferHandler
|
static Byte |
deserialize(byte[] in)
A static method used to deserialize a Byte from a byte array.
|
static Byte |
deserialize(byte[] in,
int start)
A static method used to deserialize a Byte from a byte array.
|
Byte |
deserialize(ByteBuffer buffer)
Deserialize an element from a ByteBuffer
|
Byte |
fromBytes(byte[] in)
A method used to deserialize a Byte from a byte array.
|
Byte |
fromBytes(byte[] in,
int start)
A method used to deserialize a Byte from a byte array.
|
static byte[] |
serialize(byte value)
Serialize a byte
|
byte[] |
serialize(Byte element)
Produce the byte[] representation of the element
|
static byte[] |
serialize(byte[] buffer,
int start,
byte value)
Serialize a byte
|
compare, getComparator, getTypepublic static final ByteSerializer INSTANCE
public byte[] serialize(Byte element)
element - The element to serializepublic static byte[] serialize(byte value)
value - the value to serializepublic static byte[] serialize(byte[] buffer,
int start,
byte value)
buffer - the Buffer that will contain the serialized valuestart - the position in the buffer we will store the serialized bytevalue - the value to serializepublic static Byte deserialize(byte[] in)
in - The byte array containing the Bytepublic static Byte deserialize(byte[] in, int start)
in - The byte array containing the Bytestart - the position in the byte[] we will deserialize the byte frompublic Byte fromBytes(byte[] in)
in - The byte array containing the Bytepublic Byte fromBytes(byte[] in, int start)
in - The byte array containing the Bytestart - the position in the byte[] we will deserialize the byte frompublic Byte deserialize(ByteBuffer buffer) throws IOException
buffer - The incoming ByteBufferIOException - If the deserialization failedpublic Byte deserialize(BufferHandler bufferHandler) throws IOException
bufferHandler - The incoming bufferHandlerIOException - If the deserialization failedCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.