Package io.methvin.watcher.visitor
Class DefaultFileTreeVisitor
- java.lang.Object
-
- io.methvin.watcher.visitor.DefaultFileTreeVisitor
-
- All Implemented Interfaces:
FileTreeVisitor
public class DefaultFileTreeVisitor extends java.lang.Object implements FileTreeVisitor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.methvin.watcher.visitor.FileTreeVisitor
FileTreeVisitor.Callback
-
-
Field Summary
-
Fields inherited from interface io.methvin.watcher.visitor.FileTreeVisitor
DEFAULT_FILE_TREE_VISITOR
-
-
Constructor Summary
Constructors Constructor Description DefaultFileTreeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onFailure(java.nio.file.Path path, java.io.IOException exception)
void
recursiveVisitFiles(java.nio.file.Path file, FileTreeVisitor.Callback onDirectory, FileTreeVisitor.Callback onFile)
-
-
-
Method Detail
-
recursiveVisitFiles
public void recursiveVisitFiles(java.nio.file.Path file, FileTreeVisitor.Callback onDirectory, FileTreeVisitor.Callback onFile) throws java.io.IOException
- Specified by:
recursiveVisitFiles
in interfaceFileTreeVisitor
- Throws:
java.io.IOException
-
onFailure
protected void onFailure(java.nio.file.Path path, java.io.IOException exception) throws java.io.IOException
- Throws:
java.io.IOException
-
-