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:
parent
d2ad2c8a9c
commit
ea97f102ef
3 changed files with 14 additions and 10 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue