public Enumeration < URL > getResources ( String name ) throws IOException { if ( name . length ( ) == 0 ) return null ; if ( name . charAt ( 0 ) == ' ' ) name = name . substring ( 1 ) ; CompoundCollection < URL > list = new CompoundCollection <> ( ) ; for ( int i = 0 ; i < libs . size ( ) ; i ++ ) { AbstractClassLoader cl = libs . get ( i ) ; Iterable < URL > urls = cl . getResourcesURL ( name ) ; if ( urls != null ) list . add ( urls ) ; } list . add ( AppClassLoader . class . getClassLoader ( ) . getResources ( name ) ) ; return list . enumeration ( ) ; }
Search for resources .