哈罗德编著的《Java网络编程(影印版第4版)》这本实用指南完整介绍了基于Java开发网络程序。你将了解到如何使用Java的网络类库来快速简便地完成常见的网络任务,比如编写多线程服务器、加密通信、在局域网进行广播和发送数据到服务器端程序。
作者EuiotteRustyHarold提供了完整有效的程序来阐明他所描述的方法和类。这本全新修订的第4版包括了REST、sPDY、异步I/0和很多其他技术。
Elliotte Rusty Harold世界知名技术作家、程序员,纽约科技大学计算机系副教授。讲授面向对象编程方面的课程。他的网站Cafe con Leche是XML方面的热门网站之一。他著有Effective XML和XML in a Nutshell等一系列知名作品。
Preface
1. Basic Network Concepts
Networks
The Layers of a Network
The Host-to-Network Layer
The Internet Layer
The Transport Layer
The Application Layer
IP, TCP, and UDP
IP Addresses and Domain Names
Ports
The Internet
Internet Address Blocks
Network Address Translation
FirewaUs
Proxy Servers
The Client/Server Model
Internet Standards
IETF RFCs
W3C Recommendations
2. Streams
Output Streams
Input Streams
Marking and Resetting
Filter Streams
Chaining Filters Together
Buffered Streams
PrintStream
Data Streams
Readers and Writers
Writers
OutputStreamWriter
Readers
Filter Readers and Writers
PrintWriter
3. Threads
Running Threads
Subclassing Thread
Implementing the Runnable Interface
Returning Information from a Thread
Race Conditions
Polling
Callbacks
Futures, Callables, and Executors
Synchronization
Synchronized Blocks
Synchronized Methods
Alternatives to Synchronization
Deadlock
Thread Scheduling
Priorities
Preemption
Thread Pools and Executors
4. Internet Addresses
The InetAddress Class
Creating New InetAddress Objects
Getter Methods
Address Types
Testing Reachability
Object Methods
Inet4Address and Inet6Address
The NetworkInterface Class
Factory Methods
Getter Methods
Some Useful Programs
SpamCheck
5. URLs and URIs
6. HTTP
7. URLConnections
8. Sockets for Clients
9. Sockets for Servers
10. Secure Sockets
11. Nonblocking I/O
12. UDP
13. IP Multicast
Index