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 SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FileVisitor
postVisitDirectory, preVisitDirectory, visitFile
-
Constructor Details
-
SimplePathVisitor
protected SimplePathVisitor()Constructs a new instance. -
SimplePathVisitor
protected SimplePathVisitor(IOBiFunction<Path, IOException, FileVisitResult> visitFileFailedFunction) Constructs a new instance.- Parameters:
visitFileFailedFunction- Called onvisitFileFailed(Path, IOException).
-
-
Method Details
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Overrides:
visitFileFailedin classSimpleFileVisitor<Path>- Throws:
IOException
-