public class FileResourceSet extends Object implements ResourceSet
FileResourceSet
is able to give access to file-based content
within the scope of the root
directory.Constructor and Description |
---|
FileResourceSet(File root)
Constructs a file-based
ResourceSet , using the given root as root directory. |
Modifier and Type | Method and Description |
---|---|
Resource |
find(String path)
Finds a
Resource matching the given path . |
public FileResourceSet(File root) throws IOException
ResourceSet
, using the given root
as root directory.root
- root directoryIOException
- In case an error occurred while getting the real path of the root directory.public Resource find(String path)
ResourceSet
Resource
matching the given path
. Returns null
if no resource can be found
or if any error happened during lookup.find
in interface ResourceSet
path
- resource pathResource
or null
if not found or failure.Copyright 2011-2017 ForgeRock AS.