corda/classpath/java/util/zip
Joel Dice f0f35a920f return a useful value from InflaterInputStream.available
Note the following excerpt from PNGFileFormat.java in SWT:

     /*
     * InflaterInputStream does not consume all bytes in the stream
     * when it is closed. This may leave unread IDAT chunks. The fix
     * is to read all available bytes before closing it.
     */
     while (stream.available() > 0) stream.read();
     stream.close();

This code relies on the documented behavior of
InflaterInputStream.available, which must return "0 after EOF has been
reached, otherwise always return 1".  This is unlike
InputStream.available, which is documented to return "the number of
bytes that can be read (or skipped over) from this input stream
without blocking by the next caller of a method for this input
stream", and says nothing about how many bytes are left until the end
of stream.

This commit modifies InflaterInputStream.available to behave according
to Sun's documentation.
2010-08-04 18:54:47 -06:00
..
DataFormatException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Deflater.java update copyright years 2009-12-05 15:50:23 -07:00
DeflaterOutputStream.java update copyright years 2009-12-05 15:50:23 -07:00
Inflater.java Files to add Deflater and DeflaterOutputStream to java.util.zip for 2009-12-04 12:01:31 -07:00
InflaterInputStream.java return a useful value from InflaterInputStream.available 2010-08-04 18:54:47 -06:00
ZipEntry.java Merge branch 'master' into powerpc 2008-11-11 08:21:48 -07:00
ZipFile.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00