Package edu.hm.hafner.analysis
Interface ModuleDetector.FileSystem
-
- Enclosing class:
- ModuleDetector
public static interface ModuleDetector.FileSystemFacade for file system operations. May be replaced by stubs in test cases.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]find(Path root, String pattern)Returns all file names that match the specified pattern.InputStreamopen(String fileName)Creates anInputStreamfrom the specified filename.
-
-
-
Method Detail
-
find
String[] find(Path root, String pattern)
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
@MustBeClosed InputStream open(String fileName) throws IOException, InvalidPathException
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
-
-