Top Inners Constructors Methods
com.mchange.v2.io

public final Class DirectoryDescentUtils

extends Object
Class Inheritance
Imports
java.io.*, java.util.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
addSubtree(File root, FileFilter filter, boolean canonical, Collection<E> addToMe)

private static void
depthFirstEagerDescend(File dir, FileFilter filter, boolean canonical, Collection<E> addToMe, Set<E> seenDirex)

public static FileIterator

Returns:

FileIterator over all files and dierctories beneath root
depthFirstEagerDescent
(File root)

public static FileIterator

Returns:

FileIterator over all files and directories beneath root that match filter.
depthFirstEagerDescent
(File root, FileFilter filter, boolean
file paths will be canonicalized if true
canonical
)

public static void
main(String[] argv)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DirectoryDescentUtilsback to summary
private DirectoryDescentUtils()

Method Detail

addSubtreeback to summary
public static void addSubtree(File root, FileFilter filter, boolean canonical, Collection<E> addToMe) throws IOException
depthFirstEagerDescendback to summary
private static void depthFirstEagerDescend(File dir, FileFilter filter, boolean canonical, Collection<E> addToMe, Set<E> seenDirex) throws IOException
depthFirstEagerDescentback to summary
public static FileIterator depthFirstEagerDescent(File root) throws IOException
Returns:FileIterator

FileIterator over all files and dierctories beneath root

depthFirstEagerDescentback to summary
public static FileIterator depthFirstEagerDescent(File root, FileFilter filter, boolean canonical) throws IOException
Parameters
canonical:boolean

file paths will be canonicalized if true

Returns:FileIterator

FileIterator over all files and directories beneath root that match filter.

mainback to summary
public static void main(String[] argv)
com.mchange.v2.io back to summary

private Class DirectoryDescentUtils.IteratorFileIterator

extends Object
implements FileIterator
Class Inheritance
All Implemented Interfaces
com.mchange.v2.io.FileIterator, com.mchange.v1.util.UIterator, com.mchange.v1.util.ClosableResource

Field Summary

Modifier and TypeField and Description
pack-priv Iterator<E>
pack-priv Object

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements com.mchange.v2.io.FileIterator.close.

forces the release of any resources that might be associated with this object.

public boolean
public Object
public File
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iiback to summary
pack-priv Iterator<E> ii
lastback to summary
pack-priv Object last

Constructor Detail

IteratorFileIteratorback to summary
pack-priv IteratorFileIterator(Iterator<E> ii)

Method Detail

closeback to summary
public void close() throws IOException

Implements com.mchange.v2.io.FileIterator.close.

Doc from com.mchange.v1.util.ClosableResource.close.

forces the release of any resources that might be associated with this object.

hasNextback to summary
public boolean hasNext() throws IOException

Implements com.mchange.v2.io.FileIterator.hasNext.

nextback to summary
public Object next() throws IOException

Implements com.mchange.v2.io.FileIterator.next.

nextFileback to summary
public File nextFile() throws IOException

Implements com.mchange.v2.io.FileIterator.nextFile.

removeback to summary
public void remove() throws IOException

Implements com.mchange.v2.io.FileIterator.remove.