private InputStream loadResource ( String name ) { // we need to search the components of the path to see if we can // find the class we want. InputStream stream = null ; Enumeration e = pathComponents . elements ( ) ; while ( e . hasMoreElements ( ) && stream == null ) { File pathComponent = ( File ) e . nextElement ( ) ; stream = getResourceStream ( pathComponent , name ) ; } return stream ; }
Returns a stream to read the requested resource name from this loader .