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 / net / URLClassLoader$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  52 lines

  1. package java.net;
  2.  
  3. import java.security.AccessController;
  4. import java.util.Enumeration;
  5. import java.util.NoSuchElementException;
  6. import sun.misc.Resource;
  7.  
  8. class URLClassLoader$3 implements Enumeration {
  9.    private URL res;
  10.    // $FF: synthetic field
  11.    private final Enumeration val$e;
  12.    // $FF: synthetic field
  13.    private final URLClassLoader this$0;
  14.  
  15.    URLClassLoader$3(URLClassLoader var1, Enumeration var2) {
  16.       this.this$0 = var1;
  17.       this.val$e = var2;
  18.    }
  19.  
  20.    public Object nextElement() {
  21.       if (this.res == null) {
  22.          throw new NoSuchElementException();
  23.       } else {
  24.          URL var1 = this.res;
  25.          this.res = null;
  26.          return var1;
  27.       }
  28.    }
  29.  
  30.    public boolean hasMoreElements() {
  31.       if (this.res != null) {
  32.          return true;
  33.       } else {
  34.          do {
  35.             Resource var1 = (Resource)AccessController.doPrivileged(new URLClassLoader.4(this), URLClassLoader.access$300(this.this$0));
  36.             if (var1 == null) {
  37.                break;
  38.             }
  39.  
  40.             this.res = URLClassLoader.access$000(this.this$0).checkURL(var1.getURL());
  41.          } while(this.res == null);
  42.  
  43.          return this.res != null;
  44.       }
  45.    }
  46.  
  47.    // $FF: synthetic method
  48.    static Enumeration access$200(URLClassLoader$3 var0) {
  49.       return var0.val$e;
  50.    }
  51. }
  52.