Module edu.hm.hafner.analysis.model
Package edu.hm.hafner.analysis
Interface ModuleDetector.FileSystem
- Enclosing class:
- ModuleDetector
public static interface ModuleDetector.FileSystem
Facade for file system operations. May be replaced by stubs in test cases.
-
Method Summary
Modifier and TypeMethodDescriptionString[]Returns all file names that match the specified pattern.Creates anInputStreamfrom the specified filename.
-
Method Details
-
find
Returns all file names that match the specified pattern.- Parameters:
root- root directory to start the search frompattern- the Ant pattern to search for- Returns:
- the found file names
-
open
Creates anInputStreamfrom the specified filename.- Parameters:
fileName- the file name- Returns:
- the input stream
- Throws:
IOException- if the stream could not be openedInvalidPathException- if the file name is invalid
-