Buying Options
Java Network Programming, Second Edition
Safari Books Online
Add to Cart
What is this?

Product Editions

Please consider the latest edition.

  1. Java Network Programming, Third Edition - October 2004
  2. Java Network Programming, Second Edition - August 2000
  3. Java Network Programming - January 1997 (out of print)
Description
This complete guide to developing network programs (both applets and applications) using Java covers everything from networking fundamentals to remote method invocation (RMI). It includes chapters on TCP and UDP sockets, multicasting protocol and content handlers, and servlets. This second edition also covers Java 1.1, 1.2 and 1.3, with new chapters on multithreaded network programming, I/O, HTML parsing and display, the Java Mail API, the Java Secure Sockets Extension, and more.
Full Description
Table of Contents
  1. Chapter 1 Why Networked Java?

    1. What Can a Network Program Do?

    2. But Wait!—There's More!

  2. Chapter 2 Basic Network Concepts

    1. Networks

    2. The Layers of a Network

    3. IP, TCP, and UDP

    4. The Internet

    5. The Client/Server Model

    6. Internet Standards

  3. Chapter 3 Basic Web Concepts

    1. URIs

    2. HTML, SGML, and XML

    3. HTTP

    4. MIME

    5. CGI

    6. Applets and Security

  4. Chapter 4 Java I/O

    1. Output Streams

    2. Input Streams

    3. Filter Streams

    4. Readers and Writers

  5. Chapter 5 Threads

    1. Running Threads

    2. Returning Information from a Thread

    3. Synchronization

    4. Deadlock

    5. Thread Scheduling

    6. Thread Pools

  6. Chapter 6 Looking Up Internet Addresses

    1. DNS, IP Addresses, and All That

    2. The InetAddress Class

    3. Some Useful Programs

  7. Chapter 7 Retrieving Data with URLs

    1. The URL Class

    2. The URLEncoder and URLDecoder Classes

    3. Communicating with CGIs and Servlets Through GET

    4. Accessing Password-Protected Sites

  8. Chapter 8 HTML in Swing

    1. HTML on Components

    2. JEditorPane

    3. Parsing HTML

  9. Chapter 9 The Network Methods of java.applet.Applet

    1. Using java.applet.Applet to Download Data

    2. The ImageObserver Interface

    3. The MediaTracker Class

    4. Network Methods of java.applet.AppletContext

  10. Chapter 10 Sockets for Clients

    1. Socket Basics

    2. Investigating Protocols with Telnet

    3. The Socket Class

    4. Socket Exceptions

    5. Examples

  11. Chapter 11 Sockets for Servers

    1. The ServerSocket Class

    2. Some Useful Servers

  12. Chapter 12 Secure Sockets

    1. Secure Communications

    2. Creating Secure Client Sockets

    3. Methods of the SSLSocket Class

    4. Creating Secure Server Sockets

    5. Methods of the SSLServerSocket Class

  13. Chapter 13 UDP Datagrams and Sockets

    1. The UDP Protocol

    2. The DatagramPacket Class

    3. The DatagramSocket Class

    4. Some Useful Applications

  14. Chapter 14 Multicast Sockets

    1. What Is a Multicast Socket?

    2. Working with Multicast Sockets

    3. Two Simple Examples

  15. Chapter 15 The URLConnection Class

    1. Opening URLConnections

    2. Reading Data from a Server

    3. Reading the Header

    4. Configuring the Connection

    5. Configuring the Client Request MIME Header

    6. Writing Data to a Server

    7. Content Handlers

    8. The Object Methods

    9. Security Considerations for URLConnections

    10. Guessing MIME Types

    11. HttpURLConnection

    12. JarURLConnection

  16. Chapter 16 Protocol Handlers

    1. What Is a Protocol Handler?

    2. The URLStreamHandler Class

    3. Writing a Protocol Handler

    4. More Protocol Handler Examples and Techniques

    5. The URLStreamHandlerFactory Interface

  17. Chapter 17 Content Handlers

    1. What Is a Content Handler?

    2. The ContentHandler Class

    3. The ContentHandlerFactory Interface

    4. A Content Handler for an Image Format: image/x-fits

  18. Chapter 18 Remote Method Invocation

    1. What Is Remote Method Invocation?

    2. Implementation

    3. Loading Classes at Runtime

    4. The java.rmi Package

    5. The java.rmi.registry Package

    6. The java.rmi.server Package

  19. Chapter 19 The JavaMail API

    1. What Is the JavaMail API?

    2. Sending Email

    3. Receiving Mail

    4. Password Authentication

    5. Addresses

    6. The URLName Class

    7. The Message Class

    8. The Part Interface

    9. Multipart Messages and File Attachments

    10. MIME Messages

    11. Folders

  1. Colophon

View Full Table of Contents
Product Details
Title:
Java Network Programming, Second Edition
By:
Elliotte Rusty Harold
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
August 2000
Pages:
760
Print ISBN:
978-1-56592-870-1
| ISBN 10:
1-56592-870-9
Customer Reviews
Colophon

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, Second Edition, is a North American river otter (Lutra canadensis). These small carnivores are found in all major waterways of the United States and Canada, 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. A diving 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. Beverly Goldfarb was the copyeditor for Java Network Programming, Second Edition. Deborah English was the proofreader. Jeffrey Holcomb, Sarah Jane Shangraw, and Claire Cloutier performed quality control reviews. Nancy Crumpton wrote the index. Interior composition was done by Claire Cloutier, Sarah Jane Shangraw, Molly Shangraw, and Joan McGaw.

The image on the cover of this book is a river otter. The cover was designed by Emma Colby using a series design by Edie Freeman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. Alicia Cech and David Futato designed the interior layout. The text was produced in FrameMaker 5.5.6 using a template implemented by Mike Sierra. The heading font is Bodoni BT; the text font is New Baskerville. The illustrations that appear in the book were created in Macromedia Freehand 8 and Adobe Photoshop 5 by Robert Romano and Rhon Porter. This colophon was written by Leanne Soylemez.

Whenever possible, our books use a durable and flexible lay-flat binding. If the page count exceeds the lay-flat binding limit, perfect binding is used.

  • Book cover of Java Network Programming