* java/util/zip/GZIPOutputStream.java (write(byte[])): New
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 May 1999 12:35:06 +0000 (12:35 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 May 1999 12:35:06 +0000 (12:35 +0000)
method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27031 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/util/zip/GZIPOutputStream.java

index 52cd8c5..79aee1e 100644 (file)
@@ -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.
index 1d93fd1..4669d06 100644 (file)
@@ -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
   {