/** * Returns the next resource in the enumeration. * * @return the next resource in the enumeration */ public Object nextElement() { URL ret = this.nextResource; if (ret == null) { throw new NoSuchElementException(); } findNextResource(); return ret; }
/** * Returns the next resource in the enumeration. * * @return the next resource in the enumeration */ public Object nextElement() { URL ret = this.nextResource; if (ret == null) { throw new NoSuchElementException(); } findNextResource(); return ret; }
/** * Constructs a new enumeration of resources of the given name found * within this class loader's classpath. * * @param name the name of the resource to search for. */ ResourceEnumeration(String name) { this.resourceName = name; this.pathElementsIndex = 0; findNextResource(); }
/** * Constructs a new enumeration of resources of the given name found * within this class loader's classpath. * * @param name the name of the resource to search for. */ ResourceEnumeration(String name) { this.resourceName = name; this.pathElementsIndex = 0; findNextResource(); }