Class FileVisitor

java.lang.Object
eu.bandm.tools.util.files.FileVisitor
Direct Known Subclasses:
FileTree.Visitor

public class FileVisitor extends Object
Applies visitor style pattern to file system trees.
  • Constructor Details Link icon

    • FileVisitor Link icon

      public FileVisitor()
  • Method Details Link icon

    • visit Link icon

      public void visit(File f)
      Central entry method.
      Is called for applying the visitor. Normally it will not be overwritten. Calls directly visitNonDir(File) or visitDir(File), depending on the type of the file.
      Parameters:
      f - position in the file system from which visiting shall descend.
    • visitDir_pre Link icon

      public void visitDir_pre(File f)
      To be overwritten by payload code, if wanted. Is called for every directory before descending into the contained files.
    • visitDir_post Link icon

      public void visitDir_post(File f)
      To be overwritten by payload code, if wanted. Is called for every directory after descending into the contained files.
    • visitNonDir Link icon

      public void visitNonDir(File f)
      To be overwritten by payload code, if wanted. Is called for every non-directory file.