java nio 中文版 试读

初次翻译 有点糙。
欢迎拍砖。

目录:

第一章 介绍 3
1.1 I/O 和CPU Time 3
1.2不再是CPU密集型 4
1.3 Getting to the Good Stuff 5
1.4 I/O 概念 7
1.4.1 缓冲处理 7
1.4.2 Virtual Memory 10
1.4.3 Memory Paging 11
1.4.4 文件 I/O 12
1.4.5 Stream I/O 16
1.5 Summary 17
第二章 Buffers 18
2.1 Buffer Basics 19
2.1.1 属性 19
2.1.2 Buffer API 20
2.1.3 Accessing 21
2.1.4 Filling 22
2.1.5 Flipping 反转 23
2.1.6 Draining 25
2.1.7 Compacting 27
2.1.8 Marking 28
2.1.9 Comparing 29
2.1.10 Bulk Moves 32
2.2 Creating Buffers 35
2.3 Duplicating Buffers 38
2.4 Byte Buffers 40
2.4.1 Byte Ordering 43
2.4.2 Direct Buffers 46
2.4.3 View Buffers 47
2.4.4 Data Element Views 50
2.4.5 Accessing Unsigned Data 52
2.4.6 Memory-Mapped Buffers 54
2.5 Summary 54
第三章 通道 55
3.1 Channel 基础 58
3.1.1 打开通道 59
3.1.2 使用通道 60
3.1.3 通道关闭 66
3.2 Scatter/Gather 68
3.3 File Channels 74
3.3.1 Accessing Files 77
3.3.2 File Locking 83
3.4 Memory-Mapped Files 90
3.4.1 Channel-to-Channel Transfers 103
3.5 Socket Channels 105
3.5.1 非阻塞模式 107
3.5.2 ServerSocketChannel 109
3.5.3 SocketChannel 112
3.5.4 DatagramChannel 116
3.6 Pipes 128
3.7 工具类 Channels 133
3.8 总结 135
第四章. Selectors 136
4.1 Selector 基础 137
4.1.1类Selector, SelectableChannel, and SelectionKey 139
4.1.2 Selectors 设置 143
4.2 使用Selection Keys 146
4.3 使用Selectors 150
4.3.1 Selection 处理过程 151
4.3.2 停止Selection 过程 154
4.3.3 管理Selection Keys 156
4.3.4 并发 161
4.4 异步关闭 162
4.5 Selection 的伸缩性 163
4.6 Summary 169
Chapter 6. Character Sets 171
6.1 Character Set Basics 171
6.2 Charsets 174
6.2.1 The Charset Class 180
6.2.2 Comparing Charsets 183
6.2.3 Charset Encoders 184
6.2.4 Charset Decoders 184
6.3 The Charset Service Provider Interface 184
6.3.1 Creating Custom Charsets 184
6.3.2 Providing Your Custom Charsets 184
6.4 Summary 184
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值