/[classpath]/classpath/java/util/zip/ZipInputStream.java
ViewVC logotype

Diff of /classpath/java/util/zip/ZipInputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by tromey, Wed Sep 25 21:06:16 2002 UTC revision 1.8 by mark, Mon Oct 28 00:21:39 2002 UTC
# Line 139  public class ZipInputStream extends Infl Line 139  public class ZipInputStream extends Infl
139    public ZipEntry getNextEntry() throws IOException    public ZipEntry getNextEntry() throws IOException
140    {    {
141      if (crc == null)      if (crc == null)
142        throw new IllegalStateException("Closed.");        throw new IOException("Stream closed.");
143      if (entry != null)      if (entry != null)
144        closeEntry();        closeEntry();
145    
# Line 216  public class ZipInputStream extends Infl Line 216  public class ZipInputStream extends Infl
216    public void closeEntry() throws IOException    public void closeEntry() throws IOException
217    {    {
218      if (crc == null)      if (crc == null)
219        throw new IllegalStateException("Closed.");        throw new IOException("Stream closed.");
220      if (entry == null)      if (entry == null)
221        return;        return;
222    
# Line 287  public class ZipInputStream extends Infl Line 287  public class ZipInputStream extends Infl
287    public int read(byte[] b, int off, int len) throws IOException    public int read(byte[] b, int off, int len) throws IOException
288    {    {
289      if (crc == null)      if (crc == null)
290        throw new IllegalStateException("Closed.");        throw new IOException("Stream closed.");
291      if (entry == null)      if (entry == null)
292        return -1;        return -1;
293      boolean finished = false;      boolean finished = false;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26