You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
IO在计算机中表示输入和输出,java对IO进行抽象后构建了流,分为输入、输出流。根据数据处理方式又分为字节流和字符流。
|
|
|
|
|
# 一、字节流
|
|
|
|
|
字节流的顶级接口为InputStream、OutputStream
|
|
|
|
|
## 1.1 InputStream 字节输入流
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 1.2 OutputStream 字节输出流
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 二、字符流
|
|
|
|
|
字符流的顶级接口为Reader、Writer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 三、流中使用的设计模式
|