Class InputStreamLocator
java.lang.Object
org.apache.fulcrum.yaafi.framework.util.InputStreamLocator
Helper for locating a file name and returning an input stream.
- Author:
- Siegfried Goeschl
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorInputStreamLocator(File rootDir) ConstructorInputStreamLocator(File rootDir, org.apache.avalon.framework.logger.Logger logger) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected FileLocate the file with the given position using the following steps
-
Constructor Details
-
InputStreamLocator
public InputStreamLocator()Constructor -
InputStreamLocator
Constructor- Parameters:
rootDir- the root directory to start the search
-
InputStreamLocator
Constructor- Parameters:
rootDir- the root directory to start the searchlogger- the logger to be used
-
-
Method Details
-
locate
Locate the file with the given position using the following steps- Parameters:
location- the location of the source to be loaded- Returns:
- input stream of the source
- Throws:
IOException- if source is not found
-
getRootDir
- Returns:
- Returns the rootDir.
-