public class GsonJsonDeserializer extends AbstractJsonDeserializer
构造器和说明 |
---|
GsonJsonDeserializer() |
限定符和类型 | 方法和说明 |
---|---|
<V> V |
deserialize(byte[] bytes)
字节反序列化
|
<V> V |
deserialize(byte[] bytes,
Class<V> clazz)
字节反序列化
|
<V> V |
deserialize(byte[] bytes,
TypeReference<V> type)
字节反序列化
|
<V> V |
deserialize(String str)
字符串反序列化
|
<V> V |
deserialize(String str,
Class<V> clazz)
字符串反序列化
|
<V> V |
deserialize(String str,
TypeReference<V> type)
字符串反序列化
|
deserialize, deserialize, deserialize, deserialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unserialize, unserialize, unserialize, unserialize
unserialize, unserialize, unserialize, unserialize, unserialize, unserialize
public <V> V deserialize(String str) throws DeserializerException
Deserializer
V
- 待反序列化对象类型str
- 待反序列化字符串DeserializerException
- 反序列化异常public <V> V deserialize(String str, Class<V> clazz) throws DeserializerException
JsonDeserializer
V
- 待反序列化对象类型str
- 待反序列化字符串clazz
- 待反序列化对象类DeserializerException
- 反序列化异常public <V> V deserialize(String str, TypeReference<V> type) throws DeserializerException
JsonDeserializer
V
- 待反序列化对象类型str
- 待反序列化字符串type
- 待反序列化对象类引用DeserializerException
- 反序列化异常public <V> V deserialize(byte[] bytes) throws DeserializerException
Deserializer
V
- 待反序列化对象类型bytes
- 待反序列化的字节DeserializerException
- 反序列化异常public <V> V deserialize(byte[] bytes, Class<V> clazz) throws DeserializerException
JsonDeserializer
V
- 待反序列化对象类型bytes
- 待反序列化的字节clazz
- 待反序列化对象类DeserializerException
- 反序列化异常public <V> V deserialize(byte[] bytes, TypeReference<V> type) throws DeserializerException
JsonDeserializer
V
- 待反序列化对象类型bytes
- 待反序列化的字节type
- 待反序列化对象类引用DeserializerException
- 反序列化异常Copyright © 2023 buession.com Inc.. All rights reserved.