Package org.linkedin.util.io.resource.internal

Examples of org.linkedin.util.io.resource.internal.SchemeURIResourceFactory


  public Resource createResource(URI uri) throws UnsupportedURIException
  {
    if(uri.getScheme() == null)
      return FileResource.createFromRoot(new File(uri.getPath()));

    SchemeURIResourceFactory factory = _factories.get(uri.getScheme());
    if(factory == null)
      throw new UnsupportedURIException("unsupported scheme " + uri.getScheme());

    return factory.createResource(uri, this);
  }
View Full Code Here

TOP

Related Classes of org.linkedin.util.io.resource.internal.SchemeURIResourceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.