|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deepfs.util.TreePrinter
public final class TreePrinter
Produces tree(1)-like output of a directory hierarchy.
Constructor Summary | |
---|---|
TreePrinter()
|
Method Summary | |
---|---|
void |
levelUpdate(int l)
Event triggered once tree level has changed. |
void |
postDirectoryVisit(File d)
Nothing is done when a directory is left. |
void |
postTraversalVisit(File d)
Nothing special is done when the traversal is finished. |
void |
preDirectoryVisit(File d)
Prints a line for tree(1)-like output of a directory. |
void |
preTraversalVisit(File d)
Prints absolute path of directory to be visited subsequently. |
void |
regularFileVisit(File f)
Prints a line for tree(1)-like output of a regular file. |
void |
symLinkVisit(File f)
Prints a line for tree(1)-like output of a symbolic link. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreePrinter()
Method Detail |
---|
public void preDirectoryVisit(File d)
preDirectoryVisit
in interface FSTraversal
d
- the directory nodepublic void postDirectoryVisit(File d)
postDirectoryVisit
in interface FSTraversal
d
- the directory nodepublic void regularFileVisit(File f)
regularFileVisit
in interface FSTraversal
f
- the filepublic void symLinkVisit(File f)
symLinkVisit
in interface FSTraversal
f
- the filepublic void preTraversalVisit(File d)
preTraversalVisit
in interface FSTraversal
d
- directory the traversal starts frompublic void postTraversalVisit(File d)
postTraversalVisit
in interface FSTraversal
d
- the directory node the traversal started frompublic void levelUpdate(int l)
FSTraversal
levelUpdate
in interface FSTraversal
l
- relative level/depth of traversal in directory hierarchy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |