wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/factory/AbstractUriLocatorFactory.java
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));
  }
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));
  }
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.

@param uri to locate.
@return {@link InputStream} of the resource.
@throws IOException if uri is invalid or resource couldn't be located.
Locates an InputStream for the given uri .