org.I0Itec.zkclient.serialize
Class BytesPushThroughSerializer

java.lang.Object
  extended by org.I0Itec.zkclient.serialize.BytesPushThroughSerializer
All Implemented Interfaces:
ZkSerializer

public class BytesPushThroughSerializer
extends java.lang.Object
implements ZkSerializer

A ZkSerializer which simply passes byte arrays to zk and back.


Constructor Summary
BytesPushThroughSerializer()
           
 
Method Summary
 java.lang.Object deserialize(byte[] bytes)
           
 byte[] serialize(java.lang.Object bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesPushThroughSerializer

public BytesPushThroughSerializer()
Method Detail

deserialize

public java.lang.Object deserialize(byte[] bytes)
                             throws ZkMarshallingError
Specified by:
deserialize in interface ZkSerializer
Throws:
ZkMarshallingError

serialize

public byte[] serialize(java.lang.Object bytes)
                 throws ZkMarshallingError
Specified by:
serialize in interface ZkSerializer
Throws:
ZkMarshallingError