summaryrefslogtreecommitdiff
path: root/java/util/zip/GZIPInputStream.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-03-10 21:16:05 +0000
committerTom Tromey <tromey@redhat.com>2006-03-10 21:16:05 +0000
commit799643ade13f561bc7c2afac628396d83fda6ab1 (patch)
treed6892d66a6bcd676acb9bda0a13ba443a3678784 /java/util/zip/GZIPInputStream.java
parenta7ca0c2d4964f62ddd33d5db86ad756f3685f568 (diff)
downloadclasspath-799643ade13f561bc7c2afac628396d83fda6ab1.tar.gz
* java/util/zip/InflaterInputStream.java (read): Replace with libgcj
implementation. * java/util/zip/GZIPInputStream.java (readHeader): Use DEFLATED, not '8'.
Diffstat (limited to 'java/util/zip/GZIPInputStream.java')
-rw-r--r--java/util/zip/GZIPInputStream.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/util/zip/GZIPInputStream.java b/java/util/zip/GZIPInputStream.java
index 2cea755b3..f244810e7 100644
--- a/java/util/zip/GZIPInputStream.java
+++ b/java/util/zip/GZIPInputStream.java
@@ -207,7 +207,7 @@ public class GZIPInputStream
/* 2. Check the compression type (must be 8) */
int CM = in.read();
- if (CM != 8)
+ if (CM != Deflater.DEFLATED)
throw new IOException("Error in GZIP header, data not in deflate format");
headCRC.update(CM);