Package org.apache.commons.io.file
Class SimplePathVisitor
- All Implemented Interfaces:
FileVisitor<Path>
,PathVisitor
- Direct Known Subclasses:
CountingPathVisitor
,NoopPathVisitor
A
SimpleFileVisitor
typed to a Path
.- Since:
- 2.7
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructs a new instance.protected
SimplePathVisitor
(IOBiFunction<Path, IOException, FileVisitResult> visitFileFailed) Constructs a new instance. -
Method Summary
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.nio.file.FileVisitor
postVisitDirectory, preVisitDirectory, visitFile
-
Constructor Details
-
SimplePathVisitor
protected SimplePathVisitor()Constructs a new instance. -
SimplePathVisitor
Constructs a new instance.- Parameters:
visitFileFailed
- Called onvisitFileFailed(Path, IOException)
.
-
-
Method Details
-
visitFileFailed
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Overrides:
visitFileFailed
in classSimpleFileVisitor<Path>
- Throws:
IOException
-