/** * Returns an enumeration of URLs representing all the resources with the * given name by searching the class loader's classpath. * * @param name The resource name to search for. * Must not be <code>null</code>. * @return an enumeration of URLs for the resources * @exception IOException if I/O errors occurs (can't happen) */ protected Enumeration/*<URL>*/ findResources(String name) throws IOException { return findResources(name, true); }
/** * Finds all the resources with the given name. A resource is some * data (images, audio, text, etc) that can be accessed by class * code in a way that is independent of the location of the code. * * <p>Would override getResources if that wasn't final in Java * 1.4.</p> * * @since Ant 1.8.0 */ public Enumeration/*<URL>*/ getNamedResources(String name) throws IOException { return findResources(name, false); }
/** * Returns an enumeration of URLs representing all the resources with the * given name by searching the class loader's classpath. * * @param name The resource name to search for. * Must not be <code>null</code>. * @return an enumeration of URLs for the resources * @exception IOException if I/O errors occurs (can't happen) */ protected Enumeration/*<URL>*/ findResources(String name) throws IOException { return findResources(name, true); }
/** * Finds all the resources with the given name. A resource is some * data (images, audio, text, etc) that can be accessed by class * code in a way that is independent of the location of the code. * * <p>Would override getResources if that wasn't final in Java * 1.4.</p> * * @since Ant 1.8.0 */ public Enumeration/*<URL>*/ getNamedResources(String name) throws IOException { return findResources(name, false); }