| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.model.resource.locator.wildcard.WildcardUriLocatorSupport
ro.isdc.wro.model.resource.locator.ClasspathUriLocator
public class ClasspathUriLocator
Implementation of the UriLocator that is able to read a resource from a classpath.
| Field Summary | |
|---|---|
| static String | ALIASAlias used to register this locator with LocatorProvider. | 
| static String | PREFIXPrefix of the resource uri used to check if the resource can be read by this UriLocatorimplementation. | 
| Constructor Summary | |
|---|---|
| ClasspathUriLocator() | |
| Method Summary | |
|---|---|
|  boolean | accept(String url)Check if this uri can be located by concrete implementation. | 
| static boolean | isValid(String uri)Check if a uri is a classpath resource. | 
|  InputStream | locate(String uri)Locates the uri by retrieving the InputStream. | 
|  WildcardStreamLocator | newWildcardStreamLocator()Builds a JarWildcardStreamLocatorin order to get resources from the full classpath. | 
| Methods inherited from class ro.isdc.wro.model.resource.locator.wildcard.WildcardUriLocatorSupport | 
|---|
| getWildcardStreamLocator, isEnableWildcards, setEnableWildcards | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String ALIAS
LocatorProvider.
public static final String PREFIX
UriLocator implementation.
| Constructor Detail | 
|---|
public ClasspathUriLocator()
| Method Detail | 
|---|
public boolean accept(String url)
url - 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.public WildcardStreamLocator newWildcardStreamLocator()
JarWildcardStreamLocator in order to get resources from the full classpath.
newWildcardStreamLocator in class WildcardUriLocatorSupportWildcardStreamLocator.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||