org.apache.tools.ant.types.resources
Class FileResourceIterator
java.lang.Object
org.apache.tools.ant.types.resources.FileResourceIterator
- Iterator
public class FileResourceIterator
extends java.lang.Object
implements Iterator
Iterator of FileResources from filenames.
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.
|
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.
|
FileResourceIterator
public FileResourceIterator()
Construct a new FileResourceIterator.
FileResourceIterator
public FileResourceIterator(File f)
Construct a new FileResourceIterator relative to the specified
base directory.
f
- the base directory of this instance.
FileResourceIterator
public FileResourceIterator(File f,
String[] s)
Construct a new FileResourceIterator over the specified filenames,
relative to the specified base directory.
f
- the base directory of this instance.s
- the String[] of filenames.
addFiles
public void addFiles(String[] s)
Add an array of filenames to this FileResourceIterator.
s
- the filenames to add.
hasNext
public boolean hasNext()
Find out whether this FileResourceIterator has more elements.
- whether there are more Resources to iterate over.
next
public Object next()
Get the next element from this FileResourceIterator.
nextResource
public FileResource nextResource()
Convenience method to return the next resource.
remove
public void remove()
Not implemented.