p. 252: Change
uc.getHeaderField("content-encoding"));
to
uc.getHeaderField("content-encoding");
That is, delete the extra closing parenthesis.
p. 253: Change "The first header is zero." to "The first MIME header is one." in both the third and fourth paragraphs of body text.
p. 268: In the saveBinaryFile()
method of Example 10-13, there's a likely IndexOutOfBoundsException
. To fix it, change,
bytesread = theImage.read(b, offset, bfr);
to
bytesread = theImage.read(b, offset, b.length-offset);
p. 278: In Example 10-16 delete the line int cl = query.length();
p. 293: change "The createURLStreamHandler()
method
of the createURLStreamHandlerFactory
interface" to
"The createURLStreamHandler()
method
of the URLStreamHandlerFactory
interface"