public InputStream getSound ( String bundle , String path ) throws IOException { InputStream rsrc ; try { rsrc = _rmgr . getResource ( bundle , path ) ; } catch ( FileNotFoundException notFound ) { // try from the classpath try { rsrc = _rmgr . getResource ( path ) ; } catch ( FileNotFoundException notFoundAgain ) { throw notFound ; } } return rsrc ; }
Attempts to load a sound stream from the given path from the given bundle and from the classpath . If nothing is found a FileNotFoundException is thrown .