Commit 2d40265f by Tom Tromey Committed by Tom Tromey

GZIPOutputStream.java (write(byte[])): New method.

	* java/util/zip/GZIPOutputStream.java (write(byte[])): New
	method.

From-SVN: r27031
parent ab3a6dd6
1999-05-19 Tom Tromey <tromey@cygnus.com> 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. * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
Include <stdlib.h>. Include <stdlib.h>.
* java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned. * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
......
...@@ -62,6 +62,11 @@ public class GZIPOutputStream extends DeflaterOutputStream ...@@ -62,6 +62,11 @@ public class GZIPOutputStream extends DeflaterOutputStream
crc = new CRC32 (); 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) public synchronized void write (byte[] buf, int off, int len)
throws IOException throws IOException
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment