home *** CD-ROM | disk | FTP | other *** search
- package netscape.softupdate;
-
- import java.util.Enumeration;
- import java.util.NoSuchElementException;
-
- final class VerRegEnumerator implements Enumeration {
- private String path = "";
- private int state;
-
- public boolean hasMoreElements() {
- int var1 = this.state;
- String var2 = this.regNext();
- this.state = var1;
- return var2 != null;
- }
-
- public Object nextElement() {
- this.path = this.regNext();
- if (this.path == null) {
- throw new NoSuchElementException("VerRegEnumerator");
- } else {
- return "/" + this.path;
- }
- }
-
- private native String regNext();
- }
-