public static Enumeration<URL> getSystemResources (String name) throws IOException

Finds all resources of the specified name from the search path used to load classes. The resources thus found are returned as an Enumeration of URL objects.

The search order is described in the documentation for getSystemResource(String).

Resources in named modules are subject to the encapsulation rules specified by Module.getResourceAsStream. Additionally, and except for the special case where the resource has a name ending with " .class", this method will only find resources in packages of named modules when the package is Module.isOpen(String) unconditionally.

Parameters:
name     The resource name

Returns:  An enumeration of URL objects for the resource. If no resources could be found, the enumeration will be empty. Resources for which a URL cannot be constructed, are in a package that is not opened unconditionally, or access to the resource is denied by the security manager, are not returned in the enumeration.

Exceptions:
IOException     If I/O errors occur

Since:  1.2

@revised 9
@spec JPMS