public class CharArraySerializer extends AbstractElementSerializer<char[]>
| Modifier and Type | Field and Description |
|---|---|
static CharArraySerializer |
INSTANCE
A static instance of a CharArraySerializer
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
deserialize(BufferHandler bufferHandler)
Deserialize an element from a BufferHandler
|
static char[] |
deserialize(byte[] in)
A static method used to deserialize a char array from a byte array.
|
char[] |
deserialize(ByteBuffer buffer)
Deserialize an element from a ByteBuffer
|
char[] |
fromBytes(byte[] in)
A method used to deserialize a char array from a byte array.
|
char[] |
fromBytes(byte[] in,
int start)
A method used to deserialize a char array from a byte array.
|
byte[] |
serialize(char[] element)
Produce the byte[] representation of the element
|
compare, getComparator, getTypepublic static final CharArraySerializer INSTANCE
public byte[] serialize(char[] element)
element - The element to serializepublic static char[] deserialize(byte[] in)
in - The byte array containing the char arraypublic char[] fromBytes(byte[] in,
int start)
in - The byte array containing the char arraypublic char[] fromBytes(byte[] in)
in - The byte array containing the char arraypublic char[] deserialize(BufferHandler bufferHandler) throws IOException
bufferHandler - The incoming bufferHandlerIOException - If the deserialization failedpublic char[] deserialize(ByteBuffer buffer) throws IOException
buffer - The incoming ByteBufferIOException - If the deserialization failedCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.