Package org.codehaus.groovy.ant
Class FileIterator
java.lang.Object
org.codehaus.groovy.ant.FileIterator
FileIterator is an iterator over a
number of files from a collection of FileSet instances.
-
Constructor Summary
ConstructorsConstructorDescriptionFileIterator(org.apache.tools.ant.Project project, Iterator<org.apache.tools.ant.types.FileSet> fileSetIterator) Creates a file iterator that yields files from the supplied file sets.FileIterator(org.apache.tools.ant.Project project, Iterator<org.apache.tools.ant.types.FileSet> fileSetIterator, boolean iterateDirectories) Creates a file iterator that yields files or directories from the supplied file sets. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FileIterator
public FileIterator(org.apache.tools.ant.Project project, Iterator<org.apache.tools.ant.types.FileSet> fileSetIterator) Creates a file iterator that yields files from the supplied file sets.- Parameters:
project- the Ant project used to resolve each file setfileSetIterator- the file sets to iterate
-
FileIterator
public FileIterator(org.apache.tools.ant.Project project, Iterator<org.apache.tools.ant.types.FileSet> fileSetIterator, boolean iterateDirectories) Creates a file iterator that yields files or directories from the supplied file sets.- Parameters:
project- the Ant project used to resolve each file setfileSetIterator- the file sets to iterateiterateDirectories-trueto iterate directories instead of files
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()throws UnsupportedOperationException
-