public class FastJsonJsonSerializer extends AbstractSerializer<FastJsonJsonSerializer,FastJsonJsonDeserializer>
deserializer, logger, serializer
构造器和说明 |
---|
FastJsonJsonSerializer()
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
<V> V |
deserialize(String str,
Class<V> clazz)
将字符串反序列化为 clazz 指定的对象
|
<V> V |
deserialize(String str,
TypeReference<V> type)
将字符串反序列化为 type 指定的对象
|
<V> V |
deserializeBytes(byte[] bytes,
Class<V> clazz)
将字节反序列化为 clazz 指定的对象
|
<V> V |
deserializeBytes(byte[] bytes,
TypeReference<V> type)
将字符串反序列化为 type 指定的对象
|
deserialize, deserializeBytes, serialize, serialize, serializeAsBytes, serializeAsBytes
public <V> V deserialize(String str, Class<V> clazz)
Serializer
V
- 对象类型str
- 待反序列化的字符串clazz
- 对象类public <V> V deserializeBytes(byte[] bytes, Class<V> clazz)
Serializer
V
- 对象类型bytes
- 待反序列化的字节clazz
- 对象类public <V> V deserialize(String str, TypeReference<V> type)
Serializer
V
- 对象类型str
- 待反序列化的字符串type
- 对象引用public <V> V deserializeBytes(byte[] bytes, TypeReference<V> type)
Serializer
V
- 对象类型bytes
- 待反序列化的字节type
- 对象引用Copyright © 2023 buession.com Inc.. All rights reserved.