①IO初步
?
?
1。InputStream OutputStream,Reader Writer是抽象类,程序为基准分读写,后者是读字符。其他的类继承于这些抽象类。
2。基本的读取方法抽象类,继承Closeable。基本的读写法一个个读,缓冲读写,中间读写。缓冲读写需要数组为内存。
?
abstract ?intread() ?intread(byte[]?b) b 中。?intread(byte[]?b, int?off, int?len) len 个数据字节读入 byte 数组。?voidclose() ?voidflush() ?voidwrite(byte[]?b) b.length 个字节从指定的 byte 数组写入此输出流。?voidwrite(byte[]?b, int?off, int?len) off 开始的 len 个字节写入此输出流。abstract ?voidwrite(int?b)
??????????将指定的字节写入此输出流。