org.I0Itec.zkclient.serialize
Interface ZkSerializer

All Known Implementing Classes:
BytesPushThroughSerializer, SerializableSerializer

public interface ZkSerializer

Zookeeper is able to store data in form of byte arrays. This interfacte is a bridge between those byte-array format and higher level objects.

See Also:
BytesPushThroughSerializer, SerializableSerializer

Method Summary
 java.lang.Object deserialize(byte[] bytes)
           
 byte[] serialize(java.lang.Object data)
           
 

Method Detail

serialize

byte[] serialize(java.lang.Object data)
                 throws ZkMarshallingError
Throws:
ZkMarshallingError

deserialize

java.lang.Object deserialize(byte[] bytes)
                             throws ZkMarshallingError
Throws:
ZkMarshallingError