diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-29 21:50:07 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-29 21:50:07 +0000 |
commit | fbac7a9ca59a4047ad881beb93d86e283fb952c9 (patch) | |
tree | ef2c698cad659f0dcb82bcfdb23172679d94f79f /libjava/java | |
parent | 018718de863bd5f35d65fc4e7d5b5be8364fbd95 (diff) | |
download | ppe42-gcc-fbac7a9ca59a4047ad881beb93d86e283fb952c9.tar.gz ppe42-gcc-fbac7a9ca59a4047ad881beb93d86e283fb952c9.zip |
* java/util/zip/GZIPOutputStream.java (write(int)): New method.
Fixes PR libgcj/4728.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46618 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/util/zip/GZIPOutputStream.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libjava/java/util/zip/GZIPOutputStream.java b/libjava/java/util/zip/GZIPOutputStream.java index cf62fb7c6bf..1fb081b10ab 100644 --- a/libjava/java/util/zip/GZIPOutputStream.java +++ b/libjava/java/util/zip/GZIPOutputStream.java @@ -1,5 +1,5 @@ /* GZIPOutputStream.java - Create a file in gzip format - Copyright (C) 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -78,6 +78,12 @@ public class GZIPOutputStream extends DeflaterOutputStream crc = new CRC32 (); } + public synchronized void write (int bval) throws IOException + { + super.write (bval); + crc.update (bval); + } + public synchronized void write (byte[] buf) throws IOException { write (buf, 0, buf.length); |