ml.shifu.guagua.util
接口 ObjectSerializer<T>

所有已知实现类:
JavaObjectSerializer

public interface ObjectSerializer<T>

To serialize object to byte array and de-serialize bytes to an instance.

作者:
Zhang David (pengzhang@paypal.com)

方法摘要
 T deserialize(byte[] bytes, Class<?> clazz)
          De-serialize byte array to an instance.
 byte[] serialize(T t)
          Serialize an instance to byte array.
 

方法详细信息

serialize

byte[] serialize(T t)
Serialize an instance to byte array.


deserialize

T deserialize(byte[] bytes,
              Class<?> clazz)
De-serialize byte array to an instance.



Copyright © 2015. All Rights Reserved.