📄 customserializer.java
字号:
package org.garret.perst;
import java.io.*;
/**
* Interface of custome serializer
*/
public interface CustomSerializer {
/**
* Serialize object
* @param obj object to be packed
* @param out output stream to which object should be serialized
*/
void pack(CustomSerializable obj, OutputStream out) throws IOException;
/**
* Deserialize object
* @param in input stream from which object should be deserialized
* @return unpacked object
*/
CustomSerializable unpack(InputStream in) throws IOException;
/**
* Create object from its string representation
* @param str string representation of object (created by toString() method)
*/
CustomSerializable parse(String str) throws IOException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -