⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 randomaccessstream.java

📁 这个是perst-269.zip下面的SOURCECODE,和大家分享了。
💻 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 + -