diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-29 07:37:14 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-29 07:37:14 +0000 |
commit | f894682734002d3f477d0cdacde029ef663ebb95 (patch) | |
tree | e7ee5b6202a3ea298aed979b4bf46e9121359c4a /libjava/java/util/zip/DeflaterOutputStream.java | |
parent | 7caff4c2525635b16f3373431217c51de38a8713 (diff) | |
download | ppe42-gcc-f894682734002d3f477d0cdacde029ef663ebb95.tar.gz ppe42-gcc-f894682734002d3f477d0cdacde029ef663ebb95.zip |
2003-04-29 Michael Koch <konqueror@gmx.de>
* java/util/zip/Deflater.java,
java/util/zip/DeflaterOutputStream.java:
Partly merged with classpath.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/zip/DeflaterOutputStream.java')
-rw-r--r-- | libjava/java/util/zip/DeflaterOutputStream.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libjava/java/util/zip/DeflaterOutputStream.java b/libjava/java/util/zip/DeflaterOutputStream.java index a430288569c..755d8e71420 100644 --- a/libjava/java/util/zip/DeflaterOutputStream.java +++ b/libjava/java/util/zip/DeflaterOutputStream.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -41,16 +41,22 @@ import java.io.FilterOutputStream; import java.io.OutputStream; import java.io.IOException; -/** - * @author Tom Tromey - * @date May 17, 1999 - */ - /* Written using on-line Java Platform 1.2 API Specification * and JCL book. * Believed complete and correct. */ +/** + * This is a special FilterOutputStream deflating the bytes that are + * written through it. It uses the Deflater for deflating. + * + * A special thing to be noted is that flush() doesn't flush + * everything in Sun's JDK, but it does so in jazzlib. This is because + * Sun's Deflater doesn't have a way to flush() everything, without + * finishing the stream. + * + * @author Tom Tromey, Jochen Hoenicke + */ public class DeflaterOutputStream extends FilterOutputStream { public void close () throws IOException |