nfsinputstream.java

来自「爬虫数据的改进,并修正了一些bug」· Java 代码 · 共 26 行

JAVA
26
字号
/* Copyright (c) 2004 The Nutch Organization.  All rights reserved.   */
/* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
package net.nutch.fs;

import java.io.*;

/****************************************************************
 * NFSInputStream is a generic old InputStream with a little bit
 * of RAF-style seek ability.
 *
 * @author Mike Cafarella
 *****************************************************************/
public abstract class NFSInputStream extends InputStream {
    /**
     * Seek to the given offset from the start of the file.
     * The next read() will be from that location.  Can't
     * seek past the end of the file.
     */
    public abstract void seek(long pos) throws IOException;

    /**
     * Return the current offset from the start of the file
     */
    public abstract long getPos() throws IOException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?