|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.io.DirectoryTreeTraversal
public abstract class DirectoryTreeTraversal
Traverses a directory structure.
Constructor Summary | |
---|---|
DirectoryTreeTraversal(java.lang.String init)
Traverses a directory tree structure |
Method Summary | |
---|---|
protected void |
arriveAtDir(java.io.File currentFile)
Program called when we arrive at a directory |
protected boolean |
isAllowed(java.io.File currentDirectory)
Gets the Allowed attribute of the DirectoryTreeTraversal object |
protected abstract boolean |
isTarget(java.io.File currentFile)
Determines if this file should be handled by this traversal |
protected void |
leaveDir(java.io.File currentFile)
Program called when we arrive at a directory |
void |
run()
Starts the tree traversal |
protected void |
traverse(java.io.File current)
Starts the tree traversal |
protected abstract void |
visit(java.io.File currentFile)
Visits the current file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryTreeTraversal(java.lang.String init)
init
- the initial directoryMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
protected abstract boolean isTarget(java.io.File currentFile)
currentFile
- the current file
protected boolean isAllowed(java.io.File currentDirectory)
currentDirectory
- Description of Parameter
protected void traverse(java.io.File current)
current
- Description of Parameterprotected abstract void visit(java.io.File currentFile)
currentFile
- the current fileprotected void arriveAtDir(java.io.File currentFile)
currentFile
- the current fileprotected void leaveDir(java.io.File currentFile)
currentFile
- the current file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |