Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.deepfs.util
Interface FSTraversal

All Known Implementing Classes:
  FSImporter, FSWalker, TreePrinter

    public interface FSTraversal

Interface assembling the events fired during a filesystem traversal. #`FSWalker` descends into a directory hierarchy and notifies registered visitors about the events assembled in this interface.

Author:
  Workgroup DBIS, University of Konstanz 2005-10, ISC License, Alexander Holupirek

Method Summary
`void` | `levelUpdate(int l)` Event triggered once tree level has changed.
`void` | `postDirectoryVisit(File d)` Visits a directory node in postorder (leaving directory).
`void` | `postTraversalVisit(File d)` Fired once the filesystem traversal finished.
`void` | `preDirectoryVisit(File d)` Visits a directory node in preorder (enter directory).
`void` | `preTraversalVisit(File d)` Fired before the filesystem traversal starts.
`void` | `regularFileVisit(File f)` Visits a regular file.
`void` | `symLinkVisit(File f)` Visits a symbolic link.

Method Detail

### levelUpdate

    void levelUpdate(int l)

  Event triggered once tree level has changed.

  Parameters:
    `l` - relative level/depth of traversal in directory hierarchy

### preTraversalVisit

    void preTraversalVisit(File d)

  Fired before the filesystem traversal starts.

  Parameters:
    `d` - the directory node the traversal starts from

### postTraversalVisit

    void postTraversalVisit(File d)

  Fired once the filesystem traversal finished.

  Parameters:
    `d` - the directory node the traversal started from

### preDirectoryVisit

    void preDirectoryVisit(File d)

  Visits a directory node in preorder (enter directory).

  Parameters:
    `d` - the directory node

### postDirectoryVisit

    void postDirectoryVisit(File d)

  Visits a directory node in postorder (leaving directory).

  Parameters:
    `d` - the directory node

### regularFileVisit

    void regularFileVisit(File f)

  Visits a regular file.

  Parameters:
    `f` - the file

### symLinkVisit

    void symLinkVisit(File f)

  Visits a symbolic link.

  Parameters:
    `f` - the file

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD