Package org.eclipse.jetty.start
Class PathFinder
- All Implemented Interfaces:
FileVisitor<Path>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHits()
boolean
preVisitDirectory
(Path dir, BasicFileAttributes attrs) void
Set the active basePath, used for resolving relative paths.void
setDirMatcher
(PathMatcher dirMatcher) void
setFileMatcher
(String pattern) void
setFileMatcher
(PathMatcher fileMatcher) void
setIncludeDirsInResults
(boolean includeDirsInResults) visitFile
(Path file, BasicFileAttributes attrs) visitFileFailed
(Path file, IOException exc) Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory
-
Constructor Details
-
PathFinder
public PathFinder()
-
-
Method Details
-
getDirMatcher
-
getFileMatcher
-
getHitList
-
getHits
-
isIncludeDirsInResults
public boolean isIncludeDirsInResults() -
preVisitDirectory
- Specified by:
preVisitDirectory
in interfaceFileVisitor<Path>
- Overrides:
preVisitDirectory
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
setBase
Set the active basePath, used for resolving relative paths.When a hit arrives for a subsequent find that has the same relative path as a prior hit, the new hit overrides the prior path as the active hit.
- Parameters:
basePath
- the basePath to tag all hits with
-
setDirMatcher
-
setFileMatcher
-
setFileMatcher
-
setIncludeDirsInResults
public void setIncludeDirsInResults(boolean includeDirsInResults) -
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Overrides:
visitFileFailed
in classSimpleFileVisitor<Path>
- Throws:
IOException
-