diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-19 12:35:06 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-19 12:35:06 +0000 |
commit | 61d08b87ad67d8a7ea350215fe30b1516da51caf (patch) | |
tree | 5432571c162bada415e2dec4c64934fb1b02d4bb /libjava | |
parent | a1b71f21d18cef32dea4bec7e2e72ce6430305f0 (diff) | |
download | gcc-61d08b87ad67d8a7ea350215fe30b1516da51caf.tar.gz |
* java/util/zip/GZIPOutputStream.java (write(byte[])): New
method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27031 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 3 | ||||
-rw-r--r-- | libjava/java/util/zip/GZIPOutputStream.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 52cd8c542dd..79aee1e696b 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,8 @@ 1999-05-19 Tom Tromey <tromey@cygnus.com> + * java/util/zip/GZIPOutputStream.java (write(byte[])): New + method. + * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned. Include <stdlib.h>. * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned. diff --git a/libjava/java/util/zip/GZIPOutputStream.java b/libjava/java/util/zip/GZIPOutputStream.java index 1d93fd17d0c..4669d06abb0 100644 --- a/libjava/java/util/zip/GZIPOutputStream.java +++ b/libjava/java/util/zip/GZIPOutputStream.java @@ -62,6 +62,11 @@ public class GZIPOutputStream extends DeflaterOutputStream crc = new CRC32 (); } + public synchronized void write (byte[] buf) throws IOException + { + write (buf, 0, buf.length); + } + public synchronized void write (byte[] buf, int off, int len) throws IOException { |