Chapter 7. URLs and URIs
The URL class is the
simplest way for a Java program to locate and retrieve data from the
network. You do not need to worry about the details of the protocol
being used, the format of the data being retrieved, or how to
communicate with the server; you simply tell Java the URL and it gets
the data for you. Although Java can only handle a few protocols and
content types out of the box, in later chapters
you'll learn how to write and install new content
and protocol handlers that extend Java's
capabilities to include new protocols and new kinds of data.
You'll also learn how to open sockets and
communicate directly with different kinds of servers. But
that's later; for now, let's see
how much can be done with a minimum of work.
• Table of Contents• Index• Reviews• Reader Reviews• Errata• AcademicJava Network Programming, 3rd EditionBy
Elliotte Rusty Harold Publisher: O'ReillyPub Date: October 2004ISBN: 0-596-00721-3Pages: 706
Thoroughly revised to cover all the 100+ significant updates
to Java Developers Kit (JDK) 1.5, Java Network
Programming is a complete introduction to
developing network programs (both applets and applications)
using Java, covering everything from networking fundamentals
to remote method invocation (RMI). It includes chapters on
TCP and UDP sockets, multicasting protocol and content
handlers, servlets, and the new I/O API. This is the
essential resource for any serious Java developer.