接口 Serializer
- 所有已知实现类:
HessianSerializer,JacksonSerializer
public interface Serializer
Serialization interface.
- 作者:
- liaochuntao
-
字段概要
字段 -
方法概要
修饰符和类型方法说明<T> Tdeserialize(byte[] data)Deserialize the data.<T> Tdeserialize(byte[] data, Class<T> cls)Deserialize the data.<T> Tdeserialize(byte[] data, Type type)Deserialize the data.default <T> Tdeserialize(byte[] data, String classFullName)Deserialize the data.name()The name of the serializer implementer.<T> byte[]serialize(T obj)Serialize the object.
-
字段详细资料
-
CLASS_CACHE
-
-
方法详细资料
-
deserialize
<T> T deserialize(byte[] data)Deserialize the data.- 类型参数:
T- class type- 参数:
data- byte[]- 返回:
- target object instance
-
deserialize
Deserialize the data.- 类型参数:
T- class type- 参数:
data- byte[]cls- class- 返回:
- target object instance
-
deserialize
Deserialize the data.- 类型参数:
T- class type- 参数:
data- byte[]type- data type- 返回:
- target object instance
-
deserialize
Deserialize the data.- 类型参数:
T- class type- 参数:
data- byte[]classFullName- class full name- 返回:
- target object instance
-
serialize
<T> byte[] serialize(T obj)Serialize the object.- 参数:
obj- target obj- 返回:
- byte[]
-
name
String name()The name of the serializer implementer.- 返回:
- name
-