-
Chapter 1 Why Networked Java?
-
What Can a Network Program Do?
-
Security
-
But Wait! There's More!
-
-
Chapter 2 Basic Network Concepts
-
Networks
-
The Layers of a Network
-
IP, TCP, and UDP
-
The Internet
-
The Client/Server Model
-
Internet Standards
-
-
Chapter 3 Basic Web Concepts
-
URIs
-
HTML, SGML, and XML
-
HTTP
-
MIME Media Types
-
Server-Side Programs
-
-
Chapter 4 Streams
-
Output Streams
-
Input Streams
-
Filter Streams
-
Readers and Writers
-
-
Chapter 5 Threads
-
Running Threads
-
Returning Information from a Thread
-
Synchronization
-
Deadlock
-
Thread Scheduling
-
Thread Pools
-
-
Chapter 6 Looking Up Internet Addresses
-
The InetAddress Class
-
Inet4Address and Inet6Address
-
The NetworkInterface Class
-
Some Useful Programs
-
-
Chapter 7 URLs and URIs
-
The URL Class
-
The URLEncoder and URLDecoder Classes
-
The URI Class
-
Proxies
-
Communicating with Server-Side Programs Through GET
-
Accessing Password-Protected Sites
-
-
Chapter 8 HTML in Swing
-
HTML on Components
-
JEditorPane
-
Parsing HTML
-
Cookies
-
-
Chapter 9 Sockets for Clients
-
Socket Basics
-
Investigating Protocols with Telnet
-
The Socket Class
-
Socket Exceptions
-
Socket Addresses
-
Examples
-
-
Chapter 10 Sockets for Servers
-
The ServerSocket Class
-
Some Useful Servers
-
-
Chapter 11 Secure Sockets
-
Secure Communications
-
Creating Secure Client Sockets
-
Methods of the SSLSocket Class
-
Creating Secure Server Sockets
-
Methods of the SSLServerSocket Class
-
-
Chapter 12 Non-Blocking I/O
-
An Example Client
-
An Example Server
-
Buffers
-
Channels
-
Readiness Selection
-
-
Chapter 13 UDP Datagrams and Sockets
-
The UDP Protocol
-
The DatagramPacket Class
-
The DatagramSocket Class
-
Some Useful Applications
-
DatagramChannel
-
-
Chapter 14 Multicast Sockets
-
What Is a Multicast Socket?
-
Working with Multicast Sockets
-
Two Simple Examples
-
-
Chapter 15 URLConnections
-
Opening URLConnections
-
Reading Data from a Server
-
Reading the Header
-
Configuring the Connection
-
Configuring the Client Request HTTP Header
-
Writing Data to a Server
-
Content Handlers
-
The Object Methods
-
Security Considerations for URLConnections
-
Guessing MIME Content Types
-
HttpURLConnection
-
Caches
-
JarURLConnection
-
-
Chapter 16 Protocol Handlers
-
What Is a Protocol Handler?
-
The URLStreamHandler Class
-
Writing a Protocol Handler
-
More Protocol Handler Examples and Techniques
-
The URLStreamHandlerFactory Interface
-
-
Chapter 17 Content Handlers
-
What Is a Content Handler?
-
The ContentHandler Class
-
The ContentHandlerFactory Interface
-
A Content Handler for the FITS Image Format
-
-
Chapter 18 Remote Method Invocation
-
What Is Remote Method Invocation?
-
Implementation
-
Loading Classes at Runtime
-
The java.rmi Package
-
The java.rmi.registry Package
-
The java.rmi.server Package
-
-
Chapter 19 The JavaMail API
-
What Is the JavaMail API?
-
Sending Email
-
Receiving Mail
-
Password Authentication
-
Addresses
-
The URLName Class
-
The Message Class
-
The Part Interface
-
Multipart Messages and File Attachments
-
MIME Messages
-
Folders
-
-
Colophon
- Title:
- Java Network Programming, Third Edition
- By:
- Elliotte Rusty Harold
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- October 2004
- Ebook Release:
- February 2009
- Pages:
- 768
- Print ISBN:
- 978-0-596-00721-8
- | ISBN 10:
- 0-596-00721-3
- Ebook ISBN:
- 978-0-596-10451-1
- | ISBN 10:
- 0-596-10451-0
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Java Network Programming, Third Edition, is a North American river otter (Lutra canadensis). These small carnivores are found in all major waterways of the United States and Canada, and in almost every habitat except the tundra and the hot, dry regions of the southwestern U.S. They weigh about 20 pounds and are approximately two and a half feet long, and females tend to be about a third smaller than males. Their diet consists mainly of aquatic animals like fish and frogs, but since they spend about two-thirds of their time on land, they also eat the occasional bird or rodent. Two layers of fur--a coarse outer coat and a thick, dense inner coat--protect a river otter from the cold, and, in fact, they seem to enjoy playing in snow and ice. When diving, a river otter's pulse rate slows to only 20 beats per minute from its normal 170, conserving oxygen and allowing the otter to stay underwater longer. These animals are sociable and domesticated easily, and in Europe, a related species was once trained to catch fish for people to eat. Colleen Gorman was the production editor and copyeditor for Java Network Programming, Third Edition. Sada Preisch proofread the book. Sarah Sherman and Claire Cloutier provided quality control. Mary Agner provided production assistance.John Bickelhaupt wrote the index.
Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Clay Fernald produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand MX and Adobe Photoshop CS. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Leanne Soylemez.
