public class ProtostuffSerializer extends Object implements ISerializer
public byte[] serialize(Object obj) throws com.lorne.core.framework.exception.SerializerException
ISerializer
serialize
在接口中 ISerializer
obj
- 需要序更列化的对象com.lorne.core.framework.exception.SerializerException
- 序列化异常public <T> T deSerialize(byte[] param, Class<T> clazz) throws com.lorne.core.framework.exception.SerializerException
ISerializer
deSerialize
在接口中 ISerializer
T
- 反序列化成为的bean对象param
- 需要反序列化的byte []clazz
- 反序列化成为的bean对象Classcom.lorne.core.framework.exception.SerializerException
- 序列化异常Copyright © 2020. All rights reserved.