diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-05 20:41:27 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-05 20:41:27 +0000 |
commit | 58df6473273195609af5375047344c4aff567567 (patch) | |
tree | f0156a7f7b6f0fbee823897c780949905d3bd20a /libjava/java/util/zip/DeflaterOutputStream.java | |
parent | f7998397e8b9f476da226d470f98b6ceadbdde19 (diff) | |
download | gcc-58df6473273195609af5375047344c4aff567567.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92969 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/zip/DeflaterOutputStream.java')
-rw-r--r-- | libjava/java/util/zip/DeflaterOutputStream.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/java/util/zip/DeflaterOutputStream.java b/libjava/java/util/zip/DeflaterOutputStream.java index 4d84f2a3f57..d8a330d9b6a 100644 --- a/libjava/java/util/zip/DeflaterOutputStream.java +++ b/libjava/java/util/zip/DeflaterOutputStream.java @@ -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()); } /** |