|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.io.DirectoryTreeTraversal
org.acm.seguin.util.BackupTraversal
public class BackupTraversal
Traverses a directory structure and backups all java files found
Constructor Summary | |
---|---|
BackupTraversal(java.lang.String init,
java.lang.String out)
Traverses a directory tree structure |
Method Summary | |
---|---|
protected void |
arriveAtDir(java.io.File current)
Program called when we arrive at a directory |
protected boolean |
isTarget(java.io.File currentFile)
Determines if this file should be handled by this traversal |
protected void |
leaveDir(java.io.File current)
Program called when we arrive at a directory |
static void |
main(java.lang.String[] args)
The main program |
protected void |
visit(java.io.File currentFile)
Visits the current file |
Methods inherited from class org.acm.seguin.io.DirectoryTreeTraversal |
---|
isAllowed, run, traverse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackupTraversal(java.lang.String init, java.lang.String out)
init
- the initial directoryout
- the output directoryMethod Detail |
---|
protected boolean isTarget(java.io.File currentFile)
isTarget
in class DirectoryTreeTraversal
currentFile
- the current file
protected void visit(java.io.File currentFile)
visit
in class DirectoryTreeTraversal
currentFile
- the current fileprotected void arriveAtDir(java.io.File current)
arriveAtDir
in class DirectoryTreeTraversal
current
- the current directorypublic static void main(java.lang.String[] args)
args
- Description of Parameterprotected void leaveDir(java.io.File current)
leaveDir
in class DirectoryTreeTraversal
current
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |