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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classSimplePathVisitor.AbstractBuilder<T,B extends AbstractSupplier<T, B>> Abstracts builder for subclasses. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new instance.protectedSimplePathVisitor(IOBiFunction<Path, IOException, FileVisitResult> visitFileFailedFunction) Constructs a new instance. -
Method Summary
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
visitFileFailedFunction- Called onvisitFileFailed(Path, IOException).
-
-
Method Details
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Overrides:
visitFileFailedin classSimpleFileVisitor<Path>- Throws:
IOException
-