Examples of SchemeURIResourceFactory


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
Copyright © 2018 www.massapi.com. 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.