Class EmptyFileVisitor

  • All Implemented Interfaces:
    FileVisitor

    public class EmptyFileVisitor
    extends java.lang.Object
    implements FileVisitor
    The EmptyFileVisitor can be extends by implementations that only require to implement one of the 2 visit methods (dir or file). This is just to limit the amount of code clutter when not both visit methods need to be implemented.
    • Constructor Detail

      • EmptyFileVisitor

        public EmptyFileVisitor()
    • Method Detail

      • visitDir

        public void visitDir​(FileVisitDetails dirDetails)
        Description copied from interface: FileVisitor
        Visits a directory.
        Specified by:
        visitDir in interface FileVisitor
        Parameters:
        dirDetails - Meta-info about the directory.
      • visitFile

        public void visitFile​(FileVisitDetails fileDetails)
        Description copied from interface: FileVisitor
        Visits a file.
        Specified by:
        visitFile in interface FileVisitor
        Parameters:
        fileDetails - Meta-info about the file.