public class InputStreamLocator extends Object
Constructor and Description |
---|
InputStreamLocator()
Constructor
|
InputStreamLocator(File rootDir)
Constructor
|
InputStreamLocator(File rootDir,
org.apache.avalon.framework.logger.Logger logger)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected File |
getRootDir() |
InputStream |
locate(String location)
Locate the file with the given position using the following steps
|
public InputStreamLocator()
public InputStreamLocator(File rootDir)
rootDir
- the root directory to start the searchpublic InputStreamLocator(File rootDir, org.apache.avalon.framework.logger.Logger logger)
rootDir
- the root directory to start the searchlogger
- the logger to be usedpublic InputStream locate(String location) throws IOException
location
- the location of the source to be loadedIOException
- if source is not foundprotected File getRootDir()
Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.