public interface Serializer<RESULT extends Bytable>
Serializer is used to serialize Bytable object to bytes and de-serialize bytes to Bytable
object.
A CONTRACT here: To make sure halt status in Bytable can be serialized or de-serialized. Please make sure to
write and read halt status in Bytable.
| Modifier and Type | Method and Description |
|---|---|
RESULT |
bytesToObject(byte[] data,
String className)
Transform byte array to object.
|
byte[] |
objectToBytes(RESULT result)
Transform object to byte array.
|
Copyright © 2019. All Rights Reserved.