Package org.apache.commons.io.file
Class SimplePathVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<java.nio.file.Path>
-
- org.apache.commons.io.file.SimplePathVisitor
-
- All Implemented Interfaces:
java.nio.file.FileVisitor<java.nio.file.Path>,PathVisitor
- Direct Known Subclasses:
CountingPathVisitor,NoopPathVisitor
public abstract class SimplePathVisitor extends java.nio.file.SimpleFileVisitor<java.nio.file.Path> implements PathVisitor
ASimpleFileVisitortyped to aPath.- Since:
- 2.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSimplePathVisitor.AbstractBuilder<T,B extends AbstractSupplier<T,B>>Abstracts builder for subclasses.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimplePathVisitor()Constructs a new instance.protectedSimplePathVisitor(IOBiFunction<java.nio.file.Path,java.io.IOException,java.nio.file.FileVisitResult> visitFileFailedFunction)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.FileVisitResultvisitFileFailed(java.nio.file.Path file, java.io.IOException exc)-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFile
-
-
-
-
Constructor Detail
-
SimplePathVisitor
protected SimplePathVisitor()
Constructs a new instance.
-
SimplePathVisitor
protected SimplePathVisitor(IOBiFunction<java.nio.file.Path,java.io.IOException,java.nio.file.FileVisitResult> visitFileFailedFunction)
Constructs a new instance.- Parameters:
visitFileFailedFunction- Called onvisitFileFailed(Path, IOException).
-
-
Method Detail
-
visitFileFailed
public java.nio.file.FileVisitResult visitFileFailed(java.nio.file.Path file, java.io.IOException exc) throws java.io.IOException
- Specified by:
visitFileFailedin interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Overrides:
visitFileFailedin classjava.nio.file.SimpleFileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
-