The expected behaviour for InputStream.read when no bytes can be read is
unclear. In jdk1.2, the following two sentences in the specification were
introduced. They need to be resolved.
An attempt is made to read as many as
<code>len</code> bytes, but a smaller number may be read, possibly zero.
If the first byte cannot be read for any reason other than end of
file, then an <code>IOException</code> is thrown.
So, if no bytes are read, should InputStream.read return 0 or throw an
IOException? Since jdk1.1.8, the behavior has been to return -1 which would
indicate that an eof has been found. As of mantis-beta it throws an IOException
due to the fix for 4684515.
-- xxxxx@xxxxx 2002-11-14