Interface IProjectSourceProvider
-
public interface IProjectSourceProviderProvides information about files in projects being compared.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfileExists(Path path)Checks whether a file for the specified path exists.List<Path>getFileListRecursively(Path path)Returns the file list for given folder path and all its subfolders.InputStreamgetFileStream(Path path)Returns a file stream for the specified path.voidstop()Stops the project source provider in the flow of the comparison session closure.
-
-
-
Method Detail
-
fileExists
boolean fileExists(Path path)
Checks whether a file for the specified path exists.- Parameters:
path- the specified path to check the existence for, cannot benull- Returns:
trueif the file exists,falseotherwise
-
getFileListRecursively
List<Path> getFileListRecursively(Path path)
Returns the file list for given folder path and all its subfolders.- Parameters:
path- the relative folder path to get the file list for, can not benull- Returns:
- the list of relative file paths, never
null
-
getFileStream
InputStream getFileStream(Path path)
Returns a file stream for the specified path.- Parameters:
path- the string with the path- Returns:
- the input stream
-
stop
void stop()
Stops the project source provider in the flow of the comparison session closure.
-
-