public class StringArrayAdapter extends TypeAdapter<java.lang.String[]>
Constructor and Description |
---|
StringArrayAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
deserialize(byte[] array,
int pos)
Deserializes data from a byte buffer, beginning at the given position.
|
int |
getSerializedSize(java.lang.String[] value)
Gets the size of a byte array that would encode the given value.
|
byte[] |
serialize(java.lang.String[] data)
Serializes the given data as a byte array.
|
cleanUp, getCurrentFile, getDataType, setCurrentFile
public byte[] serialize(java.lang.String[] data)
Serializer
data
- the object to serializepublic java.lang.String[] deserialize(byte[] array, int pos)
Deserializer
array
- the byte buffer to deserialize frompos
- the position in the buffer to start deserializing frompublic int getSerializedSize(java.lang.String[] value)
Deserializer