java基础15.6.1 数据输入流DataInputStream
1、public DataInputStream(InputStream in);使用字节数输入流来创建对象
2、public final int read(byte[] r, int off, int len)throws IOException;从所包含的输入流中将len个字节读入一个字节数组中。如果len为-1,则返回已读字节数。
3、public final int read(byte b[], int off, int len) throws IOExceptio荏鱿胫协n;从所包含的输入流中读取一定数量的字节,并将它们存储到缓冲区数组b中。
4、public final void readFully(byte b[]) throws IOException读取数据直到装满
5、public String readLine() throws IOException从输入流中读取一行。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:66
阅读量:44
阅读量:74
阅读量:54
阅读量:26