Skip to content

Commit e89b0aa

Browse files
committed
auto commit
1 parent 4a9c4a5 commit e89b0aa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

notes/Java IO.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,6 @@ public static void main(String[] args) throws IOException {
284284

285285
# 七、NIO
286286

287-
- [Java NIO Tutorial](http://tutorials.jenkov.com/java-nio/index.html)
288-
- [Java NIO 浅析](https://tech.meituan.com/nio.html)
289-
- [IBM: NIO 入门](https://www.ibm.com/developerworks/cn/education/java/j-nio/j-nio.html)
290-
291287
新的输入/输出 (NIO) 库是在 JDK 1.4 中引入的,弥补了原来的 I/O 的不足,提供了高速的、面向块的 I/O。
292288

293289
## 流与块
@@ -343,7 +339,7 @@ I/O 包和 NIO 已经很好地集成了,java.io.\* 已经以 NIO 为基础重
343339

344340
<div align="center"> <img src="../pics//1bea398f-17a7-4f67-a90b-9e2d243eaa9a.png"/> </div><br>
345341

346-
② 从输入通道中读取 5 个字节数据写入缓冲区中,此时 position 移动设置为 5,limit 保持不变。
342+
② 从输入通道中读取 5 个字节数据写入缓冲区中,此时 position 5,limit 保持不变。
347343

348344
<div align="center"> <img src="../pics//80804f52-8815-4096-b506-48eef3eed5c6.png"/> </div><br>
349345

@@ -612,6 +608,8 @@ NIO 与普通 I/O 的区别主要有以下两点:
612608

613609
- Eckel B, 埃克尔, 昊鹏, 等. Java 编程思想 [M]. 机械工业出版社, 2002.
614610
- [IBM: NIO 入门](https://www.ibm.com/developerworks/cn/education/java/j-nio/j-nio.html)
611+
- [Java NIO Tutorial](http://tutorials.jenkov.com/java-nio/index.html)
612+
- [Java NIO 浅析](https://tech.meituan.com/nio.html)
615613
- [IBM: 深入分析 Java I/O 的工作机制](https://www.ibm.com/developerworks/cn/java/j-lo-javaio/index.html)
616614
- [IBM: 深入分析 Java 中的中文编码问题](https://www.ibm.com/developerworks/cn/java/j-lo-chinesecoding/index.htm)
617615
- [IBM: Java 序列化的高级认识](https://www.ibm.com/developerworks/cn/java/j-lo-serial/index.html)

0 commit comments

Comments
 (0)