📄 randomaccessstream.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -