|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.types.resources.FileResourceIterator
public class FileResourceIterator
Iterator of FileResources from filenames.
Constructor Summary | |
---|---|
FileResourceIterator()
Construct a new FileResourceIterator. |
|
FileResourceIterator(java.io.File f)
Construct a new FileResourceIterator relative to the specified base directory. |
|
FileResourceIterator(java.io.File f,
java.lang.String[] s)
Construct a new FileResourceIterator over the specified filenames, relative to the specified base directory. |
Method Summary | |
---|---|
void |
addFiles(java.lang.String[] s)
Add an array of filenames to this FileResourceIterator. |
boolean |
hasNext()
Find out whether this FileResourceIterator has more elements. |
java.lang.Object |
next()
Get the next element from this FileResourceIterator. |
FileResource |
nextResource()
Convenience method to return the next resource. |
void |
remove()
Not implemented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileResourceIterator()
public FileResourceIterator(java.io.File f)
f
- the base directory of this instance.public FileResourceIterator(java.io.File f, java.lang.String[] s)
f
- the base directory of this instance.s
- the String[] of filenames.Method Detail |
---|
public void addFiles(java.lang.String[] s)
s
- the filenames to add.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public FileResource nextResource()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |