public final Iterable < URL > getResourcesURL ( String name ) { URL url = loadResourceURL ( name ) ; if ( subLoaders == null ) return url != null ? Collections . singletonList ( url ) : null ; CompoundCollection < URL > list = new CompoundCollection <> ( ) ; if ( url != null ) list . addSingleton ( url ) ; for ( AbstractClassLoader sub : subLoaders ) { Iterable < URL > urls = sub . getResourcesURL ( name ) ; if ( urls != null ) list . add ( urls ) ; } return list ; }
Search for all resources with the same path .