storable.java
来自「开源(Open Source)项目JHotDraw的文档和源程序」· Java 代码 · 共 30 行
JAVA
30 行
/*
* @(#)Storable.java 5.2
*
*/
package CH.ifa.draw.util;
import java.io.*;
/**
* Interface that is used by StorableInput and StorableOutput
* to flatten and resurrect objects. Objects that implement
* this interface and that are resurrected by StorableInput
* have to provide a default constructor with no arguments.
*
* @see StorableInput
* @see StorableOutput
*/
public interface Storable {
/**
* Writes the object to the StorableOutput.
*/
public void write(StorableOutput dw);
/**
* Reads the object from the StorableInput.
*/
public void read(StorableInput dr) throws IOException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?