public interface ResourceLocator
~/ to represent the home directory| Modifier and Type | Method and Description |
|---|---|
InputStream |
open(String searchLocation,
String resourceName)
Opens a search location, potentially applying some resolution rules to
that location
|
InputStream open(String searchLocation, String resourceName) throws IOException
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.
searchLocation - Search locationresourceName - 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.