It is our goal at Manning Publications to provide error-free texts. Inevitably, however, minor errors creep into every book in production. Any errors found in the book may be posted to the book's Author Online Forum.
Page 4, Section 1.1.2
The title of Section 1.1.1 should be changed from
Creating a buffer revision
to
Creating a buffer
Page 5, Paragraph 3:
The text
"In the old method, the available space was len-off;"
should be changed to:
"In the old method, the available space was min( len, b.length-off );"
Page 45, first two listings:
In each of the first two listings, the line
SocketChannel sch = socket.getChannel()
should be replaced by
SocketChannel sch = newSocket.getChannel()
Page 52:
Table 2.1 claims that OP_CONNECT is valid for server sockets, in contradiction to the text. The text is correct: OP_CONNECT is only valid for regular sockets.
Page 57, Listing 2.3:
Two instances of the following line
selector.selectedKeys().remove( rsk );
should be replaced by
it.remove();
Page 112-113, Listing 4.1:
In some cases, Under WinXP and IE6, all comments must be removed from PicoDraw.jnlp before it will be ready properly by IE.
Page 118, Listing 4.2:
"PicoDraw.javatt"
should read
"PicoDraw.java"
Page 142, Section 5.1.6
The text refers to figure 5.2, but it should refer to figure 5.3.
Page 149, Section 5.3
The text refers to listing 5.3, but it should refer to listing 5.1.
Page 150, Listing 5.2:
(See also \Chapter5\org\jdk14tut\chat\MultiplexingChatClient.java, \Chapter5\org\jdk14tut\chat\MultiplexingChatClientApplet.java, \Chapter5\client.html)
should read
(See also \Chapter5\org\jdk14tut\chat\ChatClient.java, \Chapter5\org\jdk14tut\chat\ChatClientApplet.java, \Chapter5\client.html)
Page 190, Section 6.3.3:
The line reading
passiveConnections.remove( connection );
should be
activeConnections.remove( connection );
Page 191, Section 6.3.3:
The line reading
passiveConnections.remove( connection );
should be
activeConnections.remove( connection );
Page 270, Section 9.3.1:
"longestword.pl (see Listing 9.1) scans a series..."
should read
"longestworld.pl (see Listing 9.3) scans a series of colon-delimited lines and prints out the longest word from each line. Listing 9.1 shows an example colon-delimited file."
Downloadable code:
In the first version of the online code, \Chapter4\PicoDraw.java would not compile. Please download the latest version of the code.