public final InputStream locate ( final String uri ) throws IOException { final UriLocator uriLocator = getInstance ( uri ) ; if ( uriLocator == null ) { throw new WroRuntimeException ( "No locator is capable of handling uri: " + uri ) ; } LOG . debug ( "[OK] locating {} using locator: {}" , uri , uriLocator . getClass ( ) . getSimpleName ( ) ) ; return new AutoCloseInputStream ( uriLocator . locate ( uri ) ) ; }
Locates an InputStream for the given uri .