com.epam.common.resourceloader
Class CurrentDirResourceLoader
java.lang.Object
com.epam.common.resourceloader.CurrentDirResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class CurrentDirResourceLoader
- extends Object
- implements ResourceLoader
Looks for resources within current directory
Date: 20.07.2004
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentDirResourceLoader
public CurrentDirResourceLoader()
- Create
CurrentDirResourceLoader
.
The parent loader is DummyResourceLoader.
CurrentDirResourceLoader
public CurrentDirResourceLoader(ResourceLoader loader)
- Creates
CurrentDirResourceLoader
.
- Parameters:
loader
- the parent loader
loadResource
public InputStream loadResource(String resourceName)
throws ResourceNotFoundException
- Description copied from interface:
ResourceLoader
- Method to load resource.
- Specified by:
loadResource
in interface ResourceLoader
- Parameters:
resourceName
- the resource name
- Returns:
- InputStream by opening a connection to a Resource specified
- Throws:
ResourceNotFoundException
- if resource not found and no parent ResrourceLoader available- See Also:
ResourceLoader.loadResource(String)
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.