JavaIO流-流的分类

一、流的分类
* 1.操作数据单位:字节流、字符流
* 2.数据的流向:输入流、输出流
* 3.流的角色:节点流、处理流
*
二、流的体系结构(常用)
* 抽象基类 节点流 缓冲流(处理流的一种)
* InputStream FileInputStream (read(byte [] buffer)) BufferedInputStream (read(byte [] buffer))
* OutputStream FileOutputStream (write(byte [] buffer,0,len)) BufferedOutputStream (write(byte [] buffer,0,len))
* Reader FileReader (read(char [] cbuf)) BufferedReader (read(char [] cbuf)/readLine())
* Writer FileWriter (write(char [] cbuf,0,len)) BufferedWriter (write(char [] cbuf,0,len))
posted @ 2020-07-29 17:27  orz江小鱼  阅读(195)  评论(0编辑  收藏  举报