corda/classpath
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
..
avian fix corruption of old revisioins in PersistentSet 2010-07-30 12:23:41 -06:00
java return a useful value from InflaterInputStream.available 2010-08-04 18:54:47 -06:00
java-io.cpp Improved (should now be complete) Unicode support (UTF-8 for *nix and UTF-16 for Windows). 2010-04-20 10:03:07 -06:00
java-lang.cpp replace calls to ExceptionOccurred with calls to ExceptionCheck 2009-12-16 19:25:03 -07:00
java-net.cpp fix non-windows java-net.cpp build 2010-07-02 09:36:55 -06:00
java-nio.cpp switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
java-util-zip.cpp throw OutOfMemoryError if malloc returns null pointer 2009-12-05 15:51:12 -07:00
java-util.cpp update copyright years 2009-12-02 19:08:29 -07:00
jni-util.h update copyright years 2009-12-02 19:08:29 -07:00