public class HessianSerializer extends Object implements ISerializer
| Constructor and Description |
|---|
HessianSerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] bytes,
Class<T> clazz)
反序列化对象
|
String |
getContentType()
获取序列化后的ContentType类型
|
byte[] |
serialize(Object object)
序列号对象
|
public String getContentType()
ISerializergetContentType in interface ISerializerpublic byte[] serialize(Object object) throws Exception
ISerializerserialize in interface ISerializerobject - 待序列化对象Exception - 可能产生的任何异常public <T> T deserialize(byte[] bytes,
Class<T> clazz)
throws Exception
ISerializerdeserialize in interface ISerializerT - 类泛型bytes - 待反序列化字节数组clazz - 序列化目标类型Exception - 可能产生的任何异常Copyright © 2022. All rights reserved.