randomaccessstream.java
来自「这个是perst-269.zip下面的SOURCECODE,和大家分享了。」· Java 代码 · 共 26 行
JAVA
26 行
package org.garret.perst;
/**
* This interface extends nomal Java streams with seek capability.
* This interface is implemented by Perst BLOB streams
*/
public interface RandomAccessStream {
/**
* Set position in the stream
* @param pos new absolute poistion in the strwam
* @return actual position - it can be less than specified if end of stream is reached
*/
public long setPosition(long pos);
/**
* Get current position in the stream
* @return current poistion in the stream
*/
public long getPosition();
/**
* Get size of the stream
* @return number of bytes available in the stream
*/
public long size();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?