[kaffe] CVS kaffe (dalibor): Resynced with GNU Classpath

Kaffe CVS cvs-commits at kaffe.org
Wed Feb 4 11:10:08 PST 2004


PatchSet 4396 
Date: 2004/02/04 19:07:13
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath

2004-02-04  Dalibor Topic <robilad at kaffe.org>

        Resynced with GNU Classpath.

        2004-02-04  Michael Koch  <konqueror at gmx.de>

        * java/util/zip/GZIPInputStream.java,
        java/util/zip/GZIPOutputStream.java:
        Merged class head with libgcj.

Members: 
	ChangeLog:1.1980->1.1981 
	libraries/javalib/java/util/zip/GZIPInputStream.java:1.9->1.10 
	libraries/javalib/java/util/zip/GZIPOutputStream.java:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1980 kaffe/ChangeLog:1.1981
--- kaffe/ChangeLog:1.1980	Wed Feb  4 18:58:26 2004
+++ kaffe/ChangeLog	Wed Feb  4 19:07:13 2004
@@ -2,6 +2,16 @@
 
         Resynced with GNU Classpath.
 
+	2004-02-04  Michael Koch  <konqueror at gmx.de>
+
+        * java/util/zip/GZIPInputStream.java,
+        java/util/zip/GZIPOutputStream.java:
+        Merged class head with libgcj.
+
+2004-02-04  Dalibor Topic <robilad at kaffe.org>
+
+        Resynced with GNU Classpath.
+
 	2004-02-03  Thomas Fitzsimmons  <fitzsim at redhat.com>
 
         * java/awt/GridBagLayout.java, java/awt/LayoutManager2.java,
Index: kaffe/libraries/javalib/java/util/zip/GZIPInputStream.java
diff -u kaffe/libraries/javalib/java/util/zip/GZIPInputStream.java:1.9 kaffe/libraries/javalib/java/util/zip/GZIPInputStream.java:1.10
--- kaffe/libraries/javalib/java/util/zip/GZIPInputStream.java:1.9	Mon Sep 29 03:05:28 2003
+++ kaffe/libraries/javalib/java/util/zip/GZIPInputStream.java	Wed Feb  4 19:07:15 2004
@@ -1,5 +1,5 @@
-/* java.util.zip.GZIPInputStream
-   Copyright (C) 2001 Free Software Foundation, Inc.
+/* GZIPInputStream.java - Input filter for reading gzip file
+   Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -41,12 +41,12 @@
 import java.io.IOException;
 import java.io.EOFException;
 
-
 /**
  * This filter stream is used to decompress a "GZIP" format stream. 
  * The "GZIP" format is described in RFC 1952.
  *
  * @author John Leuner
+ * @author Tom Tromey
  * @since JDK 1.1
  */
 public class GZIPInputStream
@@ -57,37 +57,31 @@
    */
   public static final int GZIP_MAGIC = 0x1f8b;
 
-
   /**
    * The mask for bit 0 of the flag byte.
    */
   static final int FTEXT = 0x1;
 
-
   /**
    * The mask for bit 1 of the flag byte.
    */
   static final int FHCRC = 0x2;
 
-
   /**
    * The mask for bit 2 of the flag byte.
    */
   static final int FEXTRA = 0x4;
 
-
   /**
    * The mask for bit 3 of the flag byte.
    */
   static final int FNAME = 0x8;
 
-
   /**
    * The mask for bit 4 of the flag byte.
    */
   static final int FCOMMENT = 0x10;
 
-
   /**
    * The CRC-32 checksum value for uncompressed data.
    */
@@ -99,13 +93,11 @@
    */  
   protected boolean eos;
 
-
   /**
    * Indicates whether or not the GZIP header has been read in.
    */
   private boolean readGZIPHeader;
 
-
   /**
    * Creates a GZIPInputStream with the default buffer size.
    *
@@ -120,19 +112,16 @@
     this(in, 4096);
   }
 
-
   /**
    * Creates a GZIPInputStream with the specified buffer size.
    *
    * @param in The stream to read compressed data from 
    *           (in GZIP format).
-   *
    * @param size The size of the buffer to use.
    *
    * @throws IOException if an error occurs during an I/O operation.
-   *
-   * @throws java.lang.IllegalArgumentException if <code>size</code>
-   *         is less than or equal to 0.
+   * @throws IllegalArgumentException if <code>size</code>
+   * is less than or equal to 0.
    */
   public GZIPInputStream(InputStream in, int size)
     throws IOException
@@ -141,7 +130,6 @@
     crc = new CRC32();
   }
 
-
   /**
    * Closes the input stream.
    *
@@ -150,10 +138,10 @@
   public void close()
     throws IOException
   {
+    // Nothing to do here.
     super.close();
   }
 
-
   /**
    * Reads in GZIP-compressed data and stores it in uncompressed form
    * into an array of bytes.  The method will block until either
@@ -162,10 +150,8 @@
    *
    * @param buf the buffer into which the uncompressed data will
    *            be stored.
-   *
    * @param offset the offset indicating where in <code>buf</code>
    *               the uncompressed data should be placed.
-   *
    * @param len the number of uncompressed bytes to be read.
    */
   public int read(byte[] buf, int offset, int len) throws IOException
Index: kaffe/libraries/javalib/java/util/zip/GZIPOutputStream.java
diff -u kaffe/libraries/javalib/java/util/zip/GZIPOutputStream.java:1.4 kaffe/libraries/javalib/java/util/zip/GZIPOutputStream.java:1.5
--- kaffe/libraries/javalib/java/util/zip/GZIPOutputStream.java:1.4	Mon Sep 29 11:17:21 2003
+++ kaffe/libraries/javalib/java/util/zip/GZIPOutputStream.java	Wed Feb  4 19:07:15 2004
@@ -1,4 +1,4 @@
-/* java.util.zip.GZIPOutputStream
+/* GZIPOutputStream.java - Create a file in gzip format
    Copyright (C) 2001 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.




More information about the kaffe mailing list