Package com.codeheadsystems.test.utils
Class DeletingFileVisitor
java.lang.Object
com.codeheadsystems.test.utils.DeletingFileVisitor
- All Implemented Interfaces:
FileVisitor<Path>
The type Deleting file visitor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostVisitDirectory(Path path, IOException e) preVisitDirectory(Path path, BasicFileAttributes basicFileAttributes) visitFile(Path path, BasicFileAttributes basicFileAttributes) visitFileFailed(Path path, IOException e)
-
Constructor Details
-
DeletingFileVisitor
public DeletingFileVisitor()Instantiates a new Deleting file visitor.
-
-
Method Details
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path path, BasicFileAttributes basicFileAttributes) throws IOException - Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(Path path, BasicFileAttributes basicFileAttributes) throws IOException - Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-