类 JacksonSerializer
java.lang.Object
com.alibaba.nacos.consistency.serialize.JacksonSerializer
- 所有已实现的接口:
Serializer
Serializer implement by jackson.
- 作者:
- xiweng.yy
-
字段概要
从接口继承的字段 com.alibaba.nacos.consistency.Serializer
CLASS_CACHE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<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.name()The name of the serializer implementer.<T> byte[]serialize(T obj)Serialize the object.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.alibaba.nacos.consistency.Serializer
deserialize
-
构造器详细资料
-
JacksonSerializer
public JacksonSerializer()
-
-
方法详细资料
-
deserialize
public <T> T deserialize(byte[] data)从接口复制的说明:SerializerDeserialize the data.- 指定者:
deserialize在接口中Serializer- 类型参数:
T- class type- 参数:
data- byte[]- 返回:
- target object instance
-
deserialize
从接口复制的说明:SerializerDeserialize the data.- 指定者:
deserialize在接口中Serializer- 类型参数:
T- class type- 参数:
data- byte[]cls- class- 返回:
- target object instance
-
deserialize
从接口复制的说明:SerializerDeserialize the data.- 指定者:
deserialize在接口中Serializer- 类型参数:
T- class type- 参数:
data- byte[]type- data type- 返回:
- target object instance
-
serialize
public <T> byte[] serialize(T obj)从接口复制的说明:SerializerSerialize the object.- 指定者:
serialize在接口中Serializer- 参数:
obj- target obj- 返回:
- byte[]
-
name
从接口复制的说明:SerializerThe name of the serializer implementer.- 指定者:
name在接口中Serializer- 返回:
- name
-