ro.isdc.wro.model.resource.locator.factory
Class AbstractUriLocatorFactory
java.lang.Object
ro.isdc.wro.model.resource.locator.factory.AbstractUriLocatorFactory
- All Implemented Interfaces:
- UriLocatorFactory
- Direct Known Subclasses:
- SimpleUriLocatorFactory
public abstract class AbstractUriLocatorFactory
- extends Object
- implements UriLocatorFactory
Holds a list of uri locators. The uriLocator will be created based on the first
uriLocator from the supplied list which will accept the url.
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractUriLocatorFactory
public AbstractUriLocatorFactory()
locate
public final InputStream locate(String uri)
throws IOException
- Locates an InputStream for the given uri.
- Specified by:
locate
in interface UriLocatorFactory
- Parameters:
uri
- to locate.
- Returns:
InputStream
of the resource.
- Throws:
IOException
- if uri is invalid or resource couldn't be located.
Copyright © 2008-2013. All Rights Reserved.