corda/classpath/java/io
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
..
BufferedInputStream.java return a useful value from InflaterInputStream.available 2010-08-04 18:54:47 -06:00
BufferedOutputStream.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
BufferedReader.java fix various bugs in BufferedReader.readLine 2008-07-15 08:59:00 -06:00
BufferedWriter.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ByteArrayInputStream.java add additional methods and fields to class library 2008-03-20 18:40:18 -06:00
ByteArrayOutputStream.java implement ByteArrayOutputStream.reset 2008-09-26 15:29:38 -06:00
EOFException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Externalizable.java Additional of several interfaces which can be used in serialization 2010-05-10 10:17:06 -06:00
File.java convert forward slashes to back slashes in Windows paths 2010-01-11 08:31:01 -07:00
FileDescriptor.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
FileInputStream.java ignore redundant calls to File{In|Out}putStream.close 2010-01-09 18:22:16 -07:00
FilenameFilter.java add FilenameFilter interface 2008-07-13 18:24:23 -06:00
FileNotFoundException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
FileOutputStream.java ignore redundant calls to File{In|Out}putStream.close 2010-01-09 18:22:16 -07:00
FileReader.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
FileWriter.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
InputStream.java Stylistic tweaks 2008-07-13 21:54:07 -06:00
InputStreamReader.java optimized InputStreamReader.read() 2010-04-14 09:43:56 -06:00
IOException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
LineNumberReader.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NotSerializableException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ObjectInput.java Additional of several interfaces which can be used in serialization 2010-05-10 10:17:06 -06:00
ObjectInputStream.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ObjectOutput.java Additional of several interfaces which can be used in serialization 2010-05-10 10:17:06 -06:00
ObjectOutputStream.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ObjectStreamException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
OutputStream.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
OutputStreamWriter.java ARM and UTF-8 work 2010-04-14 09:26:50 -06:00
PrintStream.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
PrintWriter.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
PushbackReader.java Stylistic tweaks 2008-07-13 21:54:07 -06:00
RandomAccessFile.java add copyright headers 2008-10-03 14:57:40 -06:00
Reader.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Serializable.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
StreamCorruptedException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
StringReader.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
StringWriter.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
UnsupportedEncodingException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Writer.java update copyright years 2009-12-02 19:08:29 -07:00