home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / util / zip / ZipFile$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  939 b   |  36 lines

  1. package java.util.zip;
  2.  
  3. import java.util.Enumeration;
  4. import java.util.NoSuchElementException;
  5.  
  6. class ZipFile$2 implements Enumeration {
  7.    // $FF: renamed from: i int
  8.    private int field_0;
  9.    // $FF: synthetic field
  10.    private final ZipFile this$0;
  11.  
  12.    ZipFile$2(ZipFile var1) {
  13.       this.this$0 = var1;
  14.       this.field_0 = 0;
  15.    }
  16.  
  17.    public boolean hasMoreElements() {
  18.       return this.field_0 < ZipFile.access$100(this.this$0);
  19.    }
  20.  
  21.    public Object nextElement() throws NoSuchElementException {
  22.       if (this.field_0 >= ZipFile.access$100(this.this$0)) {
  23.          throw new NoSuchElementException();
  24.       } else {
  25.          long var1 = ZipFile.access$300(ZipFile.access$200(this.this$0), this.field_0++);
  26.          if (var1 == 0L) {
  27.             throw new InternalError("jzentry == 0");
  28.          } else {
  29.             ZipEntry var3 = new ZipEntry(var1);
  30.             ZipFile.access$400(ZipFile.access$200(this.this$0), var1);
  31.             return var3;
  32.          }
  33.       }
  34.    }
  35. }
  36.