corda/classpath/java/util/zip
Joel Dice d4da92d300 fix bugs in Deflater and DeflaterOutputStream
Previously, Deflater.deflate would pass Z_SYNC_FLUSH to zlib
unconditionally, which caused the output to be enormous when setInput
was called repeatedly with very small input buffers.  In order to
allow zlib to buffer output and thereby maximize compression, we must
use Z_NO_FLUSH until Deflater.finish is called, at which point we
switch to Z_FINISH.  We also modify DeflaterOutputStream.close to call
Deflater.finish and write any remaining output to the wrapped stream.
2011-05-16 17:12:41 -06:00
..
CRC32.java implement java.util.zip.CRC32 2011-05-16 17:12:10 -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 fix bugs in Deflater and DeflaterOutputStream 2011-05-16 17:12:41 -06:00
DeflaterOutputStream.java fix bugs in Deflater and DeflaterOutputStream 2011-05-16 17:12:41 -06:00
Inflater.java Files to add Deflater and DeflaterOutputStream to java.util.zip for 2009-12-04 12:01:31 -07:00
InflaterInputStream.java update copyright years 2010-12-05 20:21:09 -07:00
ZipEntry.java implement jar and file URL stream handlers 2011-03-25 19:14:21 -06:00
ZipFile.java fix ClassCastException in ZipFile.getInputStream 2011-05-16 10:30:56 -06:00