aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-05-19 12:35:06 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-05-19 12:35:06 +0000
commit2d40265fdac7070a37e22327fbe3fdf0a0927d65 (patch)
tree5432571c162bada415e2dec4c64934fb1b02d4bb /libjava/java/util
parentab3a6dd6e29ad7c8ecb9d803d766e822ca1b53e5 (diff)
downloadgcc-2d40265fdac7070a37e22327fbe3fdf0a0927d65.zip
gcc-2d40265fdac7070a37e22327fbe3fdf0a0927d65.tar.gz
gcc-2d40265fdac7070a37e22327fbe3fdf0a0927d65.tar.bz2
GZIPOutputStream.java (write(byte[])): New method.
* java/util/zip/GZIPOutputStream.java (write(byte[])): New method. From-SVN: r27031
Diffstat (limited to 'libjava/java/util')
-rw-r--r--libjava/java/util/zip/GZIPOutputStream.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/java/util/zip/GZIPOutputStream.java b/libjava/java/util/zip/GZIPOutputStream.java
index 1d93fd1..4669d06 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
{