filterinputstream.java

来自「《移动Agent技术》一书的所有章节源代码。」· Java 代码 · 共 47 行

JAVA
47
字号
package java.io;

public class FilterInputStream
    extends InputStream {
  protected InputStream in;
  
  protected FilterInputStream(InputStream underlying) {
    in = underlying;
  }
  
  public int read() throws IOException {
    return in.read();
  }
  
  public int read(byte[] b) throws IOException {
    return read(b, 0, b.length);
  }
  
  public int read(byte[] b, int offset, int length) throws IOException {
    return in.read(b, offset, length);
  }
  
  public long skip(long n) throws IOException {
    return in.skip(n);
  }
  
  public int available() throws IOException {
    return in.available();
  }
  
  public void close() throws IOException {
    in.close();
  }
  
  public void mark(int readlimit) {
    in.mark(readlimit);
  }
  
  public void reset() throws IOException {
    in.reset();
  }
  
  public boolean markSupported() {
    return in.markSupported();
  }
}

⌨️ 快捷键说明

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