protected byte[] findClassInJarStream( URL inUrl, String path ) { URL classUrl = (URL) ( (Map) jarIndexes.get( inUrl ) ).get( path ); if ( classUrl != null ) { try { return readStream( classUrl.openStream() ); } catch ( IOException e ) { // Swallow } } return null; }
/** Attempt to load the bytes of a class from a JAR <code>URL</code>. * * @param inUrl The base url. * @param path The path to the desired class. * * @return The class bytes or <code>null</code> if not available * via the base url. */ protected byte[] findClassInJarStream( URL inUrl, String path ) { URL classUrl = (URL) ( (Map) jarIndexes.get( inUrl ) ).get( path ); if ( classUrl != null ) { try { return readStream( classUrl.openStream() ); } catch ( IOException e ) { // Swallow } } return null; }