summaryrefslogtreecommitdiff
path: root/java/util
diff options
context:
space:
mode:
Diffstat (limited to 'java/util')
-rw-r--r--java/util/zip/Deflater.java12
-rw-r--r--java/util/zip/DeflaterOutputStream.java4
-rw-r--r--java/util/zip/GZIPInputStream.java26
-rw-r--r--java/util/zip/GZIPOutputStream.java2
4 files changed, 15 insertions, 29 deletions
diff --git a/java/util/zip/Deflater.java b/java/util/zip/Deflater.java
index b58cc6da5..5ed0596da 100644
--- a/java/util/zip/Deflater.java
+++ b/java/util/zip/Deflater.java
@@ -1,5 +1,5 @@
-/* java.util.zip.Deflater
- Copyright (C) 2001 Free Software Foundation, Inc.
+/* Deflater.java - Compress a data stream
+ Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -37,16 +37,16 @@ exception statement from your version. */
package java.util.zip;
-/**
+/**
* This is the Deflater class. The deflater class compresses input
* with the deflate algorithm described in RFC 1951. It has several
* compression levels and three different strategies described below.
- *
+ *
* This class is <i>not</i> thread safe. This is inherent in the API, due
* to the split of deflate and setInput.
- *
+ *
* @author Jochen Hoenicke
- * @date Jan 5, 2000
+ * @author Tom Tromey
*/
public class Deflater
{
diff --git a/java/util/zip/DeflaterOutputStream.java b/java/util/zip/DeflaterOutputStream.java
index 5f396fd28..0c69e7fe6 100644
--- a/java/util/zip/DeflaterOutputStream.java
+++ b/java/util/zip/DeflaterOutputStream.java
@@ -1,5 +1,5 @@
-/* java.util.zip.DeflaterOutputStream
- Copyright (C) 2001 Free Software Foundation, Inc.
+/* DeflaterOutputStream.java - Output filter for compressing.
+ Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
diff --git a/java/util/zip/GZIPInputStream.java b/java/util/zip/GZIPInputStream.java
index 7afbff71c..ad47236b6 100644
--- a/java/util/zip/GZIPInputStream.java
+++ b/java/util/zip/GZIPInputStream.java
@@ -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.InputStream;
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 class GZIPInputStream
*/
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 @@ public class GZIPInputStream
*/
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 @@ public class GZIPInputStream
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 @@ public class GZIPInputStream
crc = new CRC32();
}
-
/**
* Closes the input stream.
*
@@ -150,10 +138,10 @@ public class GZIPInputStream
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 @@ public class GZIPInputStream
*
* @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
diff --git a/java/util/zip/GZIPOutputStream.java b/java/util/zip/GZIPOutputStream.java
index 574522db6..df7999cdc 100644
--- a/java/util/zip/GZIPOutputStream.java
+++ b/java/util/zip/GZIPOutputStream.java
@@ -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.