Class SavedFiles
Object
SavedFiles
Access previously saved-files in resources.
Different sets of saved-files exist, indexed by their file extension
.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic DualComparer
createComparer
(Path directory, String extension) Creates a comparer between a directory and saved-files in a directory in the resources.static TestLoader
createLoader
(String extension) Creates a loader for reading from a particular set of saved-files in a directory in the resources.
-
Method Details
-
createComparer
Creates a comparer between a directory and saved-files in a directory in the resources.- Parameters:
directory
- the directory (forms the first element to compare).extension
- a file-extension to identify a set of saved-files (forms the second element to compare).- Returns:
- a newly created comparer.
-
createLoader
Creates a loader for reading from a particular set of saved-files in a directory in the resources.- Parameters:
extension
- a file-extension to identify a set of saved-files (forms the second element to compare).- Returns:
- a newly created loader
-