字节输入流类InputStream

来源:互联网 发布:c语言fclose 编辑:程序博客网 时间:2024/06/06 01:30
 
读取数据的方法

int read() throws IOException ;

int read(byte[] b) throws IOException ;

int read(byte[] b,int off,int len) throws IOException ;

关闭输入流

      public void close() throws IOException;

获取流中可读的字节数

public int available() throws IOException;

移动读取指针

public long skip(long n) throws IOException;

标记流中的位置和重置读取位置
µpublic boolean markSupported();
µpublic void mark(int readlimit); public void reset();
 
原创粉丝点击