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 + * java/util/zip/GZIPOutputStream.java (write(byte[])): New + method. + * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned. Include . * 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 {