不说话,先上图(IO常用类层次结构):

IO流常用类

字符流常用底层类为:

FileReader、FileWriter,BufferedReader、BufferedWriter,区别为缓存机制;

字节流常用底层类:

FlleInputStream、FileOutputStream,BufferedInputStream、BufferedOutputStream,区别为缓存机制。

字符流,字节流转换类:

InputStreamReader、OutputStreamWriter,本身属于字符流体系,通过传入字节流和字符编码通过构造方法创建字符流实例。

此外,还有打印流,序列流,随机存取流等,慢慢研究吧!

相关文章:

  • 2022-12-23
  • 2021-08-29
  • 2021-08-28
  • 2022-01-07
  • 2021-04-08
  • 2021-08-11
  • 2022-02-02
猜你喜欢
  • 2021-07-29
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-10-23
  • 2021-04-13
相关资源
相似解决方案