public class GsonJsonSerializer extends AbstractJsonSerializer
构造器和说明 |
---|
GsonJsonSerializer() |
限定符和类型 | 方法和说明 |
---|---|
<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)
已过时。
|
<V> String |
serialize(V object)
将对象序列化为字符串
|
<V> byte[] |
serializeAsBytes(V object)
将对象序列化为字节
|
<V> byte[] |
serializeAsBytes(V object,
Charset charset)
将对象序列化为字节
|
deserialize, deserialize, deserialize, deserialize, serialize, serialize, serializeAsBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unserialize, unserialize, unserialize, unserialize
unserialize, unserialize, unserialize, unserialize, unserialize, unserialize
public <V> String serialize(V object) throws SerializerException
Serializer
V
- 待序列化对象类型object
- 待序列化对象SerializerException
- 序列化异常public <V> byte[] serializeAsBytes(V object) throws SerializerException
Serializer
V
- 待序列化对象类型object
- 待序列化对象SerializerException
- 序列化异常public <V> byte[] serializeAsBytes(V object, Charset charset) throws SerializerException
Serializer
serializeAsBytes
在接口中 Serializer
serializeAsBytes
在类中 AbstractJsonSerializer
V
- 待序列化对象类型object
- 待序列化对象charset
- 字符集SerializerException
- 序列化异常@Deprecated public <V> V deserialize(String str) throws SerializerException
Serializer
V
- 待反序列化对象类型str
- 待反序列化字符串SerializerException
- 反序列化异常Deserializer
@Deprecated public <V> V deserialize(String str, Class<V> clazz) throws SerializerException
JsonSerializer
V
- 待反序列化对象类型str
- 待反序列化字符串clazz
- 待反序列化对象类SerializerException
- 反序列化异常@Deprecated public <V> V deserialize(String str, TypeReference<V> type) throws SerializerException
JsonSerializer
V
- 待反序列化对象类型str
- 待反序列化字符串type
- 待反序列化对象类引用SerializerException
- 反序列化异常@Deprecated public <V> V deserialize(byte[] bytes) throws SerializerException
Serializer
V
- 待反序列化对象类型bytes
- 待反序列化的字节SerializerException
- 反序列化异常Deserializer
@Deprecated public <V> V deserialize(byte[] bytes, Class<V> clazz) throws SerializerException
JsonSerializer
V
- 待反序列化对象类型bytes
- 待反序列化的字节clazz
- 待反序列化对象类SerializerException
- 反序列化异常@Deprecated public <V> V deserialize(byte[] bytes, TypeReference<V> type) throws SerializerException
JsonSerializer
V
- 待反序列化对象类型bytes
- 待反序列化的字节type
- 待反序列化对象类引用SerializerException
- 反序列化异常Copyright © 2023 buession.com Inc.. All rights reserved.