- java.lang.Object
-
- jp.cafebabe.kunai.util.DirectoryRemover
-
- All Implemented Interfaces:
FileVisitor<Path>
public class DirectoryRemover extends Object implements FileVisitor<Path>
-
-
Constructor Summary
Constructors Constructor Description DirectoryRemover()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResult
postVisitDirectory(Path dir, IOException exception)
FileVisitResult
preVisitDirectory(Path dir, BasicFileAttributes attrs)
FileVisitResult
visitFile(Path file, BasicFileAttributes attrs)
FileVisitResult
visitFileFailed(Path file, IOException exc)
-
-
-
Method Detail
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
- Specified by:
preVisitDirectory
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFileFailed
public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Throws:
IOException
-
postVisitDirectory
public FileVisitResult postVisitDirectory(Path dir, IOException exception) throws IOException
- Specified by:
postVisitDirectory
in interfaceFileVisitor<Path>
- Throws:
IOException
-
-