Package com.atlassian.bamboo.utils.files
Class BambooFileVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- com.atlassian.bamboo.utils.files.BambooFileVisitor
-
- All Implemented Interfaces:
FileVisitor<Path>
public class BambooFileVisitor extends SimpleFileVisitor<Path>
A simple visitor of all files that matches specified predicate
-
-
Constructor Summary
Constructors Constructor Description BambooFileVisitor(Path rootDir, Predicate<Path> predicate, Function<Path,FileVisitResult> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResult
visitFile(Path file, BasicFileAttributes attrs)
-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileFailed
-
-
-
-
Method Detail
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
-