Class DeletingFileVisitor

  • All Implemented Interfaces:
    java.nio.file.FileVisitor<java.nio.file.Path>

    public class DeletingFileVisitor
    extends java.lang.Object
    implements java.nio.file.FileVisitor<java.nio.file.Path>
    The type Deleting file visitor.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeletingFileVisitor()
      Instantiates a new Deleting file visitor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.FileVisitResult postVisitDirectory​(java.nio.file.Path path, java.io.IOException e)  
      java.nio.file.FileVisitResult preVisitDirectory​(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes basicFileAttributes)  
      java.nio.file.FileVisitResult visitFile​(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes basicFileAttributes)  
      java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path path, java.io.IOException e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeletingFileVisitor

        public DeletingFileVisitor()
        Instantiates a new Deleting file visitor.
    • Method Detail

      • preVisitDirectory

        public java.nio.file.FileVisitResult preVisitDirectory​(java.nio.file.Path path,
                                                               java.nio.file.attribute.BasicFileAttributes basicFileAttributes)
                                                        throws java.io.IOException
        Specified by:
        preVisitDirectory in interface java.nio.file.FileVisitor<java.nio.file.Path>
        Throws:
        java.io.IOException
      • visitFile

        public java.nio.file.FileVisitResult visitFile​(java.nio.file.Path path,
                                                       java.nio.file.attribute.BasicFileAttributes basicFileAttributes)
                                                throws java.io.IOException
        Specified by:
        visitFile in interface java.nio.file.FileVisitor<java.nio.file.Path>
        Throws:
        java.io.IOException
      • visitFileFailed

        public java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path path,
                                                             java.io.IOException e)
                                                      throws java.io.IOException
        Specified by:
        visitFileFailed in interface java.nio.file.FileVisitor<java.nio.file.Path>
        Throws:
        java.io.IOException
      • postVisitDirectory

        public java.nio.file.FileVisitResult postVisitDirectory​(java.nio.file.Path path,
                                                                java.io.IOException e)
                                                         throws java.io.IOException
        Specified by:
        postVisitDirectory in interface java.nio.file.FileVisitor<java.nio.file.Path>
        Throws:
        java.io.IOException