diff options
| author | Tom Tromey <tromey@redhat.com> | 2006-04-05 20:19:59 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@redhat.com> | 2006-04-05 20:19:59 +0000 |
| commit | 7fd14cb7d7cf7f5a1c78a558d868a48e23344612 (patch) | |
| tree | 74921d9f621b009bf185253d099348513acd00b6 /java/util/zip/ZipFile.java | |
| parent | b2279e53a29b07dd8925b0d7a3e6a3c3b7454757 (diff) | |
| download | classpath-7fd14cb7d7cf7f5a1c78a558d868a48e23344612.tar.gz | |
* java/util/zip/ZipFile.java (available): Defer to super if
entry's size is unknown.
Diffstat (limited to 'java/util/zip/ZipFile.java')
| -rw-r--r-- | java/util/zip/ZipFile.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/util/zip/ZipFile.java b/java/util/zip/ZipFile.java index 4e9c49560..b8495516f 100644 --- a/java/util/zip/ZipFile.java +++ b/java/util/zip/ZipFile.java @@ -451,6 +451,8 @@ public class ZipFile implements ZipConstants { public int available() throws IOException { + if (sz == -1) + return super.available(); if (super.available() != 0) return sz - inf.getTotalOut(); return 0; |
