public class UrlUriLocator extends WildcardUriLocatorSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
Alias used to register this locator with
LocatorProvider. |
| Constructor and Description |
|---|
UrlUriLocator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String uri)
Check if this uri can be located by concrete implementation.
|
static boolean |
isValid(String uri)
Check if a uri is a URL resource.
|
InputStream |
locate(String uri)
Locates the uri by retrieving the InputStream.
|
getWildcardStreamLocator, isEnableWildcards, newWildcardStreamLocator, setEnableWildcardspublic static final String ALIAS
LocatorProvider.public boolean accept(String uri)
uri - to read.public static boolean isValid(String uri)
uri - to check.public InputStream locate(String uri) throws IOException
uri - uri to read.IOException - if the resource cannot be read for some reason.Copyright © 2008-2013. All Rights Reserved.