ZipInputStream.java: idem

2003-02-11  John Leuner  <jewel@debian.org>

	* java/util/zip/ZipInputStream.java: idem

From-SVN: r62754
This commit is contained in:
John Leuner
2003-02-12 01:25:08 +00:00
committed by Tom Tromey
parent 886e08657e
commit 8f561af784
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
/* java.util.zip.ZipInputStream
Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -286,6 +286,8 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
*/
public int read(byte[] b, int off, int len) throws IOException
{
if (len == 0)
return 0;
if (crc == null)
throw new IOException("Stream closed.");
if (entry == null)