Package org.eclipse.jetty.util
Class Scanner.Visitor
java.lang.Object
org.eclipse.jetty.util.Scanner.Visitor
- All Implemented Interfaces:
FileVisitor<Path>
- Enclosing class:
Scanner
Visitor
A FileVisitor for walking a subtree of paths. The Scanner uses
this to examine the dirs and files it has been asked to scan.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Path
(package private) IncludeExcludeSet
<PathMatcher, Path> (package private) Map
<String, Scanner.TimeNSize> -
Constructor Summary
ConstructorsConstructorDescriptionVisitor
(Path root, IncludeExcludeSet<PathMatcher, Path> rootIncludesExcludes, Map<String, Scanner.TimeNSize> scanInfoMap) -
Method Summary
Modifier and TypeMethodDescriptionpostVisitDirectory
(Path dir, IOException exc) preVisitDirectory
(Path dir, BasicFileAttributes attrs) visitFile
(Path file, BasicFileAttributes attrs) visitFileFailed
(Path file, IOException exc)
-
Field Details
-
scanInfoMap
Map<String,Scanner.TimeNSize> scanInfoMap -
rootIncludesExcludes
IncludeExcludeSet<PathMatcher,Path> rootIncludesExcludes -
root
Path root
-
-
Constructor Details
-
Visitor
public Visitor(Path root, IncludeExcludeSet<PathMatcher, Path> rootIncludesExcludes, Map<String, Scanner.TimeNSize> scanInfoMap)
-
-
Method Details
-
preVisitDirectory
- Specified by:
preVisitDirectory
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectory
in interfaceFileVisitor<Path>
- Throws:
IOException
-