com.softsynth.jmsl.util.classbrowser
Class DirectoryTraverser
java.lang.Object
com.softsynth.jmsl.util.classbrowser.DirectoryTraverser
public class DirectoryTraverser
- extends java.lang.Object
Traverse all files in a directory and recurse on all subdirectories. Call
back to a FileListener for every file encountered, passing filename and
directory
- Author:
- Nick Didkovsky 10/23/2000
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryTraverser
public DirectoryTraverser()
throws java.io.IOException
- Throws:
java.io.IOException
DirectoryTraverser
public DirectoryTraverser(java.lang.String root)
throws java.io.IOException
- Throws:
java.io.IOException
setFileListener
public void setFileListener(FileListener listener)
setRoot
public void setRoot(java.lang.String root)
throws java.io.IOException
- Throws:
java.io.IOException
traverse
public void traverse()
getNumberOfFilesHandled
public int getNumberOfFilesHandled()
main
public static void main(java.lang.String[] args)