public class ClasspathLocator extends Object implements ResourceLocator
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_URI_PREFIX |
| Constructor and Description |
|---|
ClasspathLocator() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
open(String searchLocation,
String filename)
Opens a search location, potentially applying some resolution rules to
that location
|
public static final String CLASSPATH_URI_PREFIX
public InputStream open(String searchLocation, String filename) throws IOException
ResourceLocator
If the given resourceName exists in the search location then that
resource should be returned. If that is not a valid resource but the
search location itself is a valid resource then the locator should return
that instead.
open in interface ResourceLocatorsearchLocation - Search locationfilename - Resource name expected in the search locationnull if not a
valid locationIOException - Thrown if there is a problem accessing the search locationCopyright © 2012–2022. All rights reserved.