1。InputStream OutputStream,Reader Writer是抽象类,程序为基准分读写,后者是读字符。其他的类继承于这些抽象类。
2。基本的读取方法抽象类,继承Closeable 。基本的读写法一个个读,缓冲读写,中间读写。缓冲读写需要数组为内存。
abstract int | read () 从输入流中读取数据的下一个字节。 |
int | read (byte[] b) 从输入流中读取一定数量的字节,并将其存储在缓冲区数组 b 中。 |
int | read (byte[] b, int off, int len) 将输入流中最多 len 个数据字节读入 byte 数组。 |
void | close () 关闭此输出流并释放与此流有关的所有系统资源。 |
void | flush () 刷新此输出流并强制写出所有缓冲的输出字节。 |
void | write (byte[] b) 将 b.length 个字节从指定的 byte 数组写入此输出流。 |
void | write (byte[] b, int off, int len) 将指定 byte 数组中从偏移量 off 开始的 len 个字节写入此输出流。 |
abstract void |
|