@ Override public void getResources ( Vector < URL > vector , String name ) { if ( _pathMap != null ) { String cleanName = name ; if ( cleanName . endsWith ( "/" ) ) cleanName = cleanName . substring ( 0 , cleanName . length ( ) - 1 ) ; JarMap . JarList jarEntryList = _pathMap . get ( cleanName ) ; for ( ; jarEntryList != null ; jarEntryList = jarEntryList . getNext ( ) ) { JarEntry jarEntry = jarEntryList . getEntry ( ) ; PathImpl path = jarEntry . getJarPath ( ) ; path = path . lookup ( name ) ; try { URL url = new URL ( path . getURL ( ) ) ; if ( ! vector . contains ( url ) ) vector . add ( url ) ; } catch ( Exception e ) { log . log ( Level . WARNING , e . toString ( ) , e ) ; } } } else { for ( int i = 0 ; i < _jarList . size ( ) ; i ++ ) { JarEntry jarEntry = _jarList . get ( i ) ; PathImpl path = jarEntry . getJarPath ( ) ; path = path . lookup ( name ) ; if ( path . exists ( ) ) { try { URL url = new URL ( path . getURL ( ) ) ; if ( ! vector . contains ( url ) ) vector . add ( url ) ; } catch ( Exception e ) { log . log ( Level . WARNING , e . toString ( ) , e ) ; } } } } }
Adds resources to the enumeration .