Class FileTree.Visitor

java.lang.Object
eu.bandm.tools.util.files.FileVisitor
eu.bandm.tools.util.files.FileTree.Visitor
Enclosing class:
FileTree

protected static class FileTree.Visitor extends FileVisitor
Translates all visited files into a Swing tree node and collects them into the node of the containing directory.
  • Constructor Details

    • Visitor

      public Visitor()
      Only constructor
  • Method Details

    • visit

      public void visit(File f)
      Worker methode, overridden here and called by the superclass. Central entry method.
      Is called for applying the visitor. Normally it will not be overwritten. Calls directly FileVisitor.visitNonDir(File) or FileVisitor.visitDir(File), depending on the type of the file.
      Overrides:
      visit in class FileVisitor
      Parameters:
      f - position in the file system from which visiting shall descend.