Corrections to Chapter 15 of Java I/O, Readers and Writers

p. 418: In Example 15-1, font.encoding should be file.encoding. Furthermore,

for (int i = Character.MIN_VALUE; i < Character.MAX_VALUE; i++) {

should be

for (int i = Character.MIN_VALUE; i <= Character.MAX_VALUE; i++) {

That is, the less than should be a less-than-or-equal-to. A corrected version is available online.

p. 429: In the first code fragment

catch (IOexception e) {System.err.println(e);}

should be

catch (IOException e) { System.err.println(e); }

p. 431: In Example 15-4, font.encoding should be file.encoding. A corrected version is available online.

pp. 440-442: The SourceReader program has several bugs. A corrected version is available online.


[ Java I/O Corrections | Java I/O Home Page | Table of Contents | Examples | Order from Amazon ] ]

Copyright 1999, 2000, 2001 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified November 8, 2001