Package herddb.utils
Class DeleteFileVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- herddb.utils.DeleteFileVisitor
-
- All Implemented Interfaces:
FileVisitor<Path>
public class DeleteFileVisitor extends SimpleFileVisitor<Path>
AFileVisitorwhich delete every file o directory found (including starting directory).- Author:
- diego.salvi
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleFileVisitor<Path>INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResultpostVisitDirectory(Path dir, IOException exc)FileVisitResultvisitFile(Path file, BasicFileAttributes attrs)-
Methods inherited from class java.nio.file.SimpleFileVisitor
preVisitDirectory, visitFileFailed
-
-
-
-
Field Detail
-
INSTANCE
public static final SimpleFileVisitor<Path> INSTANCE
-
-
Method Detail
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Overrides:
postVisitDirectoryin classSimpleFileVisitor<Path>- Throws:
IOException
-
-