org.apache.tools.ant.types.resources
public class FileResourceIterator extends Object implements Iterator
Since: Ant 1.7
Constructor Summary | |
---|---|
FileResourceIterator()
Construct a new FileResourceIterator. | |
FileResourceIterator(File f)
Construct a new FileResourceIterator relative to the specified
base directory. | |
FileResourceIterator(File f, String[] s)
Construct a new FileResourceIterator over the specified filenames,
relative to the specified base directory. |
Method Summary | |
---|---|
void | addFiles(String[] s)
Add an array of filenames to this FileResourceIterator. |
boolean | hasNext()
Find out whether this FileResourceIterator has more elements. |
Object | next()
Get the next element from this FileResourceIterator. |
FileResource | nextResource()
Convenience method to return the next resource. |
void | remove()
Not implemented. |
Parameters: f the base directory of this instance.
Parameters: f the base directory of this instance. s the String[] of filenames.
Parameters: s the filenames to add.
Returns: whether there are more Resources to iterate over.
Returns: the next Object.
Returns: the next File.