com.mchange.v2.io
Class DirectoryDescentUtils
java.lang.Object
com.mchange.v2.io.DirectoryDescentUtils
public final class DirectoryDescentUtils
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
depthFirstEagerDescent
public static FileIterator depthFirstEagerDescent(java.io.File root)
throws java.io.IOException
- Returns:
- FileIterator over all files and dierctories beneath root
- Throws:
java.io.IOException
depthFirstEagerDescent
public static FileIterator depthFirstEagerDescent(java.io.File root,
java.io.FileFilter filter,
boolean canonical)
throws java.io.IOException
- Parameters:
canonical - file paths will be canonicalized if true
- Returns:
- FileIterator over all files and directories beneath root that
match filter.
- Throws:
java.io.IOException
addSubtree
public static void addSubtree(java.io.File root,
java.io.FileFilter filter,
boolean canonical,
java.util.Collection addToMe)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] argv)