[kaffe] CVS kaffe (robilad): removed deflateroutputstream

Kaffe CVS cvs-commits at kaffe.org
Sat Feb 2 07:01:07 PST 2008


PatchSet 7725 
Date: 2008/02/02 14:59:31
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
removed deflateroutputstream

2008-02-02  Dalibor Topic  <robilad at kaffe.org>

* libraries/javalib/zlib-zip/java/util/zip/DeflaterOutputStream.java:
Removed.

* libraries/javalib/zlib-zip/Makefile.am (dist_zlib_JAVA):
Removed java/util/zip/DeflaterOutputStream.java.

Members: 
	ChangeLog:1.5226->1.5227 
	libraries/javalib/zlib-zip/Makefile.am:1.9->1.10 
	libraries/javalib/zlib-zip/Makefile.in:1.29->1.30 
	libraries/javalib/zlib-zip/java/util/zip/DeflaterOutputStream.java:1.1->1.2(DEAD) 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5226 kaffe/ChangeLog:1.5227
--- kaffe/ChangeLog:1.5226	Sat Feb  2 01:08:36 2008
+++ kaffe/ChangeLog	Sat Feb  2 14:59:31 2008
@@ -1,5 +1,13 @@
 2008-02-02  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/zlib-zip/java/util/zip/DeflaterOutputStream.java:
+	Removed.
+	
+	* libraries/javalib/zlib-zip/Makefile.am (dist_zlib_JAVA): 
+	Removed java/util/zip/DeflaterOutputStream.java.
+
+2008-02-02  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/clib/zip/Adler32.c, 
 	libraries/clib/zip/CRC32.c, 
 	libraries/javalib/zlib-zip/java/util/zip/Adler32.java,
Index: kaffe/libraries/javalib/zlib-zip/Makefile.am
diff -u kaffe/libraries/javalib/zlib-zip/Makefile.am:1.9 kaffe/libraries/javalib/zlib-zip/Makefile.am:1.10
--- kaffe/libraries/javalib/zlib-zip/Makefile.am:1.9	Sat Feb  2 01:08:42 2008
+++ kaffe/libraries/javalib/zlib-zip/Makefile.am	Sat Feb  2 14:59:33 2008
@@ -23,7 +23,6 @@
 
 dist_zlib_JAVA = \
 	java/util/zip/Deflater.java \
-	java/util/zip/DeflaterOutputStream.java \
 	java/util/zip/Inflater.java \
 	java/util/zip/ZipFile.java \
 	org/kaffe/util/Assert.java \
Index: kaffe/libraries/javalib/zlib-zip/Makefile.in
diff -u kaffe/libraries/javalib/zlib-zip/Makefile.in:1.29 kaffe/libraries/javalib/zlib-zip/Makefile.in:1.30
--- kaffe/libraries/javalib/zlib-zip/Makefile.in:1.29	Sat Feb  2 01:08:42 2008
+++ kaffe/libraries/javalib/zlib-zip/Makefile.in	Sat Feb  2 14:59:33 2008
@@ -288,7 +288,6 @@
 zlibdir = $(FAKE)
 dist_zlib_JAVA = \
 	java/util/zip/Deflater.java \
-	java/util/zip/DeflaterOutputStream.java \
 	java/util/zip/Inflater.java \
 	java/util/zip/ZipFile.java \
 	org/kaffe/util/Assert.java \
===================================================================
Checking out kaffe/libraries/javalib/zlib-zip/java/util/zip/DeflaterOutputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/zlib-zip/java/util/zip/Attic/DeflaterOutputStream.java,v
VERS: 1.1
***************
--- kaffe/libraries/javalib/zlib-zip/java/util/zip/DeflaterOutputStream.java	Sat Feb  2 15:01:07 2008
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,78 +0,0 @@
-package java.util.zip;
-
-import java.io.FilterOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-
-/*
- * Java core library component.
- *
- * Copyright (c) 1997, 1998
- *      Transvirtual Technologies, Inc.  All rights reserved.
- *
- * See the file "license.terms" for information on usage and redistribution
- * of this file.
- */
-public class DeflaterOutputStream
-  extends FilterOutputStream
-{
-	final private static int DEFAULT = 512;
-	protected Deflater def;
-	protected byte[] buf;
-
-public DeflaterOutputStream(OutputStream out) {
-	this(out, new Deflater(), DEFAULT);
-}
-
-public DeflaterOutputStream(OutputStream out, Deflater defx) {
-	this(out, defx, DEFAULT);
-}
-
-public DeflaterOutputStream(OutputStream out, Deflater defx, int size) {
-	super(out);
-	if (out == null)
-	  throw new NullPointerException("out");
-	if (defx == null)
-	  throw new NullPointerException("def");
-	def = defx;
-	if (size < 1)
-	  throw new IllegalArgumentException("size < 1");
-	buf = new byte[size];
-}
-
-public void close() throws IOException {
-	finish();
-	super.close();
-}
-
-protected void deflate() throws IOException {
-	do {
-		int r = def.deflate(buf, 0, buf.length);
-		out.write(buf, 0, r);
-	} while (!def.needsInput());
-}
-
-public void finish() throws IOException {
-	def.finish();
-	while (!def.finished()) {
-		deflate();
-	}
-}
-
-public void write(byte b[], int off, int len) throws IOException {
-	if (off < 0 || len < 0 || off + len > b.length)
-		throw new IndexOutOfBoundsException();
-	
-	if(len != 0) {
-		def.setInput(b, off, len);
-		deflate();
-	}
-}
-
-public void write(int b) throws IOException {
-	byte a[] = new byte[1];
-	a[0] = (byte)b;
-	write(a, 0, 1);
-}
-
-}




More information about the kaffe mailing list