java io

来源:互联网 发布:配音软件 语气 编辑:程序博客网 时间:2024/06/10 23:41

InputStream抽象类

public abstract class InputStream implements Closeable

常量:

private static final int MAX_SKIP_BUFFER_SIZE = 2048;

方法:

   一   :public abstract int read() throws IOException;

   二   : public int read(byte b[]) throws IOException {return read(b, 0, b.length);} 

   三   : public int read(byte b[], int off, int len) throws IOException {........}

   四   : public long skip(long n) throws IOException {.......}

   五   : public int available() throws IOException {return 0;}

   六   : public void close() throws IOException {}

   七   :public synchronized void mark(int readlimit) {}

   八   : public synchronized void reset() throws IOException { throw new IOException("mark/reset not supported");}

   九   :public boolean markSupported() {eturn false;}


类FilterInputStream:

public class FilterInputStream extends InputStream 

属性:

protected volatile InputStream in;

构造方法:

 protected FilterInputStream(InputStream in) {this.in = in;}

方法:

继承于InputStream,直接调用in的相应方法




        

0 0
原创粉丝点击