关于IO流的分类

IO流可分为:

1、节点流:FileInputStream、FileOutputStream、FileReader、FileWriter

2、缓冲流:BufferedInputStream、FileOutputStream、BufferedReader、BufferedWriter

3、转换流:InputStreamReader、OutputStreamWriter,这种流的作用是将字节流转为字符流,提高IO流的效率。FileReader继承了InputStreamReader,当使用FileReader时,实际上在使用InputStreamReader按照字符的方式从磁盘读入数据到内存。

4、标准输入输出流:System.in、System.out

5、打印流:

6、数据流:PrintReader、PrintWriter

7、对象流:DataInputStream、DataOutputStream

8、随机存取流:RandomAccessFile,可以指定位置任意读取文本中的数据

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值