08.IO流的分类
作者:
今天庹 | 来源:发表于
2018-10-16 19:05 被阅读0次
IO流分类:
-
流向
- 输入流 读取数据 FileReader Reader
- 输出流 写出数据 FileWriter Writer
-
数据类型
- 字节流
- 字节输入流 读取数据 InputStream
- 字节输出流 写出数据 OutputStream
- 字符流
- 字符输入流 读取数据 Reader
- 字符输出流 写出数据 Writer
package com.itheima_01;
/*
* IO流分类:
* 流向
* 输入流 读取数据 FileReader 父类 Reader
* 输出流 写出数据 FileWriter 父类 Writer
*
* 数据类型
* 字节流
* 字节输入流 读取数据 InputStream
* 字节输出流 写出数据 OutputStream
* 字符流
* 字符输入流 读取数据 Reader
* 字符输出流 写出数据 Writer
*/
public class IODemo {
public static void main(String[] args) {
}
}
本文标题:08.IO流的分类
本文链接:https://www.haomeiwen.com/subject/bjohzftx.html
网友评论