ZipEntry.java (setCompressedSize): Allow any argument.

* java/util/zip/ZipEntry.java (setCompressedSize): Allow any
	argument.
	(compressedSize): Now 'long'.  Default to -1.
	(getCompressedSize): Rewrote.
	* java/util/zip/DeflaterOutputStream.java (deflate): Don't
	deflate at all if we need input.

From-SVN: r92969
This commit is contained in:
Tom Tromey 2005-01-05 20:41:27 +00:00 committed by Tom Tromey
parent d2ad2c8a9c
commit ea97f102ef
3 changed files with 14 additions and 10 deletions

View file

@ -79,13 +79,12 @@ public class DeflaterOutputStream extends FilterOutputStream
*/
protected void deflate() throws IOException
{
do
while (! def.needsInput())
{
int len = def.deflate(buf, 0, buf.length);
if (len > 0)
out.write(buf, 0, len);
}
while (! def.needsInput());
}
/**