Klasse InputStreamLocator
java.lang.Object
org.apache.fulcrum.yaafi.framework.util.InputStreamLocator
Helper for locating a file name and returning an input stream.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructorInputStreamLocator
(File rootDir) ConstructorInputStreamLocator
(File rootDir, org.apache.avalon.framework.logger.Logger logger) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected File
Locate the file with the given position using the following steps
-
Konstruktordetails
-
InputStreamLocator
public InputStreamLocator()Constructor -
InputStreamLocator
Constructor- Parameter:
rootDir
- the root directory to start the search
-
InputStreamLocator
Constructor- Parameter:
rootDir
- the root directory to start the searchlogger
- the logger to be used
-
-
Methodendetails
-
locate
Locate the file with the given position using the following steps- Parameter:
location
- the location of the source to be loaded- Gibt zurück:
- input stream of the source
- Löst aus:
IOException
- if source is not found
-
getRootDir
- Gibt zurück:
- Returns the rootDir.
-