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 IOException;
从所包含的输入流中读取一定数量的字节,并将它们存储到缓冲区数组 b 中。

4、public final void readFully(byte b[]) throws IOException
读取数据直到装满

5、public String readLine() throws IOException
从输入流中读取一行。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:99
阅读量:137
阅读量:29
阅读量:40
阅读量:64