public class ClassPathResourceLoader extends Object implements ResourceLoader
Modifier and Type | Field and Description |
---|---|
static String |
CLASSPATH_RESOURCE_PREFIX |
DEFAULT_LOADER, DICTIONARY_LOADER
Constructor and Description |
---|
ClassPathResourceLoader()
Create
ClassPathResourceLoader . |
ClassPathResourceLoader(ResourceLoader loader) |
ClassPathResourceLoader(String prefix) |
ClassPathResourceLoader(String prefix,
ResourceLoader loader)
Create resource loader.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isClasspathResource(String dictFile) |
InputStream |
loadResource(String resourceName)
Method to load resource.
|
public static final String CLASSPATH_RESOURCE_PREFIX
public ClassPathResourceLoader()
ClassPathResourceLoader
.
The parent loader is DummyResourceLoader.public ClassPathResourceLoader(String prefix)
public ClassPathResourceLoader(ResourceLoader loader)
public ClassPathResourceLoader(String prefix, ResourceLoader loader)
loader
- the parent loaderpublic 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)
public boolean isClasspathResource(String dictFile)
Copyright © 2000–2022 EPAM Systems. All rights reserved.