Corrections to Chapter 7 of Java Network Programming, URLs and URIs

p. 190: Remove HTTPS from the list of unsupported protocols. That is, change "This browser supports HTTP, HTTPS, FTP, mailto, file, gopher, doc, netdoc, verbatim, systemresource, and jar but not HTTPS, ldap, Telnet, jdbc, rmi, jndi, finger or daytime." to "This browser supports HTTP, HTTPS, FTP, mailto, file, gopher, doc, netdoc, verbatim, systemresource, and jar but not ldap, Telnet, jdbc, rmi, jndi, finger or daytime."

p. 218: In Example 7-10, the line

            System.out.println("The host is " + u.getUserInfo());

should be

            System.out.println("The host is " + u.getHost());

As a result, on p. 219 in the output, "The host is null" should be "The host is www.xml.com"

[ Java Network Programming Corrections | Java Network Programming Home Page | Table of Contents | Examples | Order from Amazon ] ]

Copyright 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified July 31, 2005