Package javatapas.io
Class DirectoryRecursiveVisitor<T>
java.lang.Object
java.nio.file.SimpleFileVisitor<T>
javatapas.io.DirectoryRecursiveVisitor<T>
- All Implemented Interfaces:
FileVisitor<T>
public class DirectoryRecursiveVisitor<T> extends SimpleFileVisitor<T>
Walk a File Tree using a Java NIO Visitor.
Published at https://www.javatapas.com/io/Java-Directory-Recursive-Visitor.html
Javadoc at https://www.javatapas.com/docs/javatapas/io/DirectoryRecursiveVisitor.html
Published at https://www.javatapas.com/io/Java-Directory-Recursive-Visitor.html
Javadoc at https://www.javatapas.com/docs/javatapas/io/DirectoryRecursiveVisitor.html
- Version:
- 2021-05-27
- Author:
- Kodiak Brown
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DirectoryRecursiveVisitor()
-
Method Summary
Modifier and Type Method Description List<T>
getList()
FileVisitResult
postVisitDirectory(T dir, IOException e)
FileVisitResult
preVisitDirectory(T dir, BasicFileAttributes attrs)
FileVisitResult
visitFile(T file, BasicFileAttributes attrs)
Methods inherited from class java.nio.file.SimpleFileVisitor
visitFileFailed
-
Field Details
-
list
-
-
Constructor Details
-
DirectoryRecursiveVisitor
public DirectoryRecursiveVisitor()
-
-
Method Details
-
getList
-
preVisitDirectory
- Specified by:
preVisitDirectory
in interfaceFileVisitor<T>
- Overrides:
preVisitDirectory
in classSimpleFileVisitor<T>
- Throws:
IOException
-
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<T>
- Overrides:
visitFile
in classSimpleFileVisitor<T>
- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectory
in interfaceFileVisitor<T>
- Overrides:
postVisitDirectory
in classSimpleFileVisitor<T>
- Throws:
IOException
-