Class PathFinder
java.lang.Object
io.nosqlbench.nb.api.nbio.PathFinder
A central API for finding and accessing Paths which are either in
the classpath or in the file system, or both.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathFinder
public PathFinder()
-
-
Method Details
-
find
Find exactly zero or one matching Paths, and return anOptionalofPath. Or, if more than one are found, throw a basic error.- Parameters:
names- The names of paths to find, with tailing slashes signifying directories- Returns:
- An optional Path
- Throws:
BasicError- if there is more than one matching path found.
-