public class CharArraySerializer extends ArraySerializer implements AttributeSerializer<char[]>
| Constructor and Description |
|---|
CharArraySerializer() |
| Modifier and Type | Method and Description |
|---|---|
char[] |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
protected Object |
getArray(int length) |
char[] |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
protected void |
setArray(Object array,
int pos,
Object value) |
void |
write(WriteBuffer buffer,
char[] attribute)
Writes the attribute value to the given WriteBuffer.
|
getLength, isArrayOf, isIterableOf, writeLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyAttributepublic char[] convert(Object value)
AttributeSerializerIllegalArgumentException if it cannot be converted.convert in interface AttributeSerializer<char[]>value - to convertprotected Object getArray(int length)
getArray in class ArraySerializerprotected void setArray(Object array, int pos, Object value)
setArray in class ArraySerializerpublic char[] read(ScanBuffer buffer)
AttributeSerializerread in interface AttributeSerializer<char[]>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, char[] attribute)
AttributeSerializerwrite in interface AttributeSerializer<char[]>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2015. All rights reserved.