public class GenericFileResourceLoader extends Object implements ResourceLoader
DEFAULT_LOADER, DICTIONARY_LOADER
Constructor and Description |
---|
GenericFileResourceLoader()
Create the
HomeDirResourceLoader . |
GenericFileResourceLoader(ResourceLoader loader)
Create resource loader.
|
GenericFileResourceLoader(String baseDirectory) |
GenericFileResourceLoader(String baseDirectory,
ResourceLoader loader) |
Modifier and Type | Method and Description |
---|---|
InputStream |
loadResource(String resourceName)
Method to load resource.
|
public GenericFileResourceLoader()
HomeDirResourceLoader
.
The parent loader is DummyResourceLoader.public GenericFileResourceLoader(String baseDirectory)
public GenericFileResourceLoader(ResourceLoader loader)
loader
- the parent loaderpublic GenericFileResourceLoader(String baseDirectory, ResourceLoader loader)
public InputStream loadResource(String resourceName) throws ResourceNotFoundException
ResourceLoader
loadResource
in interface ResourceLoader
resourceName
- the resource nameResourceNotFoundException
- if resource not found and no parent ResrourceLoader availableResourceLoader.loadResource(String)
Copyright © 2000–2022 EPAM Systems. All rights reserved.