Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2a4b141

Browse filesBrowse files
committed
Java IO体系接口
1 parent 635c5e7 commit 2a4b141
Copy full SHA for 2a4b141

4 files changed

+16-2Lines changed: 16 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Java_IO/README.md‎

Copy file name to clipboardExpand all lines: Java_IO/README.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ James Gosling的Java流模式图与水流模式图概念映射。数据源(dat
1515

1616
#### (2). IO 流的分类 ####
1717
* 根据处理数据类型的不同分为:字符流和字节流
18-
* 根据数据流向不同分为:输入流和输出流
19-
* 根据流的功能来分:节点流(又称低级流)、过滤流(又称高级流、处理流、包装流)
18+
* 根据数据流向不同分为:[输入流和输出流](https://github.com/scalad/Note/tree/master/Java_IO/inputOutputStream)
19+
* 根据流的功能来分:[节点流(又称低级流)、过滤流(又称高级流、处理流、包装流)](https://github.com/scalad/Note/tree/master/Java_IO/functionStream)
2020

2121
![](https://github.com/scalad/Note/blob/master/Java_IO/image/Java_IO.png)
2222

Collapse file

‎Java_IO/functionStream/README.md‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
### 节点流和过滤流 ###
22
#### 节点流 ####
33
节点流(Node Stream)是流管道两端直接连接data source和data destination上的,即为取放数据的真实载体,在流通道本身不对数据做任何加工,因而也被称为低级流。
4+
5+
![](https://github.com/scalad/Note/blob/master/Java_IO/functionStream/image/node_stream.png)
6+
7+
#### 过滤流 ####
8+
过滤流(Filter Stream)是套在节点流或过滤上的,而且过滤流是不能够脱离节点流(低级流)存在的,因此称为高级流。过滤流的流管道本身封装方法,能够对低级流数据进行处理,因此也被称为处理流。究其本质,过滤流就是把不符合通过管道条件的数据过滤掉,而让满足条件的数据通过过滤流管道。
9+
10+
![](https://github.com/scalad/Note/blob/master/Java_IO/functionStream/image/filter_stream.png)
Collapse file
+7Lines changed: 7 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### 输入流、输出流 ###
2+
3+
判断当前流是输入流还是输出流的依据是二进制数据相对于计算机内存的位置,输入流是输入计算机内存是二进制数据,输出流是从计算机内存输出的二进制数据。而计算机程序在运行期间会储存在到计算机内存中,因此总的来说就是数据的来源、取向是相对程序而言的。比如键盘键入数据属于输入流,内存数据持久化到磁盘中属于输出流。
4+
5+
![](https://github.com/scalad/Note/blob/master/Java_IO/inputOutputStream/image/inputoutput.png)
6+
7+
> 说明:本图片取自互联网,纠正补充为流的来源有网络连接、内存块、磁盘(文件)、键盘等;流的去向也基本是这些。
Collapse file
54.9 KB
  • Display the source diff
  • Display the rich diff
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.