流、文件及基于文本的应用
InputStream类
read()方法:逐字节地以二进制的原始方式读取数据
public int read(); 读入一个字节,-1表示无
public int read(byte b[]); 返回读入的字节数(数组)
public int read(byte[] b, int off, int len); 返回读入的数组(从哪开始,一共读多少个字节)
OutputStream类
write()方法
public void write(int b);将参数b的低位字节写入到输出流
public void write(byte b[]);将字节数组b[]中的全部字节顺序写入到输出流