com.base4j.j2cache.util.Serializer Maven / Gradle / Ivy
The newest version!
package com.base4j.j2cache.util;
import java.io.IOException;
/**
* 对象序列化接口
* @author winterlau
*/
public interface Serializer {
public String name();
public byte[] serialize(Object obj) throws IOException ;
public Object deserialize(byte[] bytes) throws IOException ;
}