public synchronized URL toURL( final ResourceKey key ) { if ( key == null ) { throw new NullPointerException(); } final ResourceLoader loader = findBySchema( key ); if ( loader == null ) { return null; } return loader.toURL( key ); }
public ResourceData loadRawData( final ResourceManager frontEnd, final ResourceKey key ) throws UnrecognizedLoaderException, ResourceLoadingException { if ( frontEnd == null ) { throw new NullPointerException(); } if ( key == null ) { throw new NullPointerException(); } final ResourceLoader loader = findBySchema( key ); if ( loader == null ) { throw new UnrecognizedLoaderException( "Invalid key: No resource-loader registered for schema: " + key.getSchema() ); } logger.debug( "Loaded " + key ); return loader.load( key ); }