iserializable.java
来自「这个是perst-269.zip下面的SOURCECODE,和大家分享了。」· Java 代码 · 共 20 行
JAVA
20 行
package org.garret.perst;
/**
* Interface which should be implemented by any object which can be serialized.
* Implementation of <code>writeObject</code> <code>readObject</code> methods should
* stpre/fetch content to of the object to the provided stream.
* Order of storing/fetching fields should be the same in both methods.
*/
public interface ISerializable {
/**
* Store object fields in the stream.
* @param out stream to which object is written
*/
void writeObject(IOutputStream out);
/**
* Fetch object fields from the stream
* @param in stream from which object data should be fetched
*/
void readObject(IInputStream in);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?