Package com.mchange.v2.io
Class DirectoryDescentUtils
- java.lang.Object
-
- com.mchange.v2.io.DirectoryDescentUtils
-
public final class DirectoryDescentUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addSubtree(java.io.File root, java.io.FileFilter filter, boolean canonical, java.util.Collection addToMe)
static FileIterator
depthFirstEagerDescent(java.io.File root)
static FileIterator
depthFirstEagerDescent(java.io.File root, java.io.FileFilter filter, boolean canonical)
static void
main(java.lang.String[] argv)
-
-
-
Method Detail
-
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)
-
-