Class FileResourceIterator
java.lang.Object
org.apache.tools.ant.types.resources.FileResourceIterator
-
Constructor Summary
ConstructorDescriptionDeprecated.FileResourceIterator
(File basedir) Deprecated.in favor ofFileResourceIterator(Project, File)
FileResourceIterator
(File basedir, String[] filenames) Deprecated.in favor ofFileResourceIterator(Project, File, String[])
FileResourceIterator
(Project project) Create a new FileResourceIterator.FileResourceIterator
(Project project, File basedir) Construct a new FileResourceIterator relative to the specified base directory.FileResourceIterator
(Project project, File basedir, String[] filenames) Construct a new FileResourceIterator over the specified filenames, relative to the specified base directory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an array of filenames to this FileResourceIterator.boolean
hasNext()
Find out whether this FileResourceIterator has more elements.next()
Get the next element from this FileResourceIterator.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
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FileResourceIterator
Deprecated.in favor ofFileResourceIterator(Project)
Construct a new FileResourceIterator. -
FileResourceIterator
Create a new FileResourceIterator.- Parameters:
project
- associated Project instance- Since:
- Ant 1.8
-
FileResourceIterator
Deprecated.in favor ofFileResourceIterator(Project, File)
Construct a new FileResourceIterator relative to the specified base directory.- Parameters:
basedir
- the base directory of this instance.
-
FileResourceIterator
-
FileResourceIterator
Deprecated.in favor ofFileResourceIterator(Project, File, String[])
Construct a new FileResourceIterator over the specified filenames, relative to the specified base directory.- Parameters:
basedir
- the base directory of this instance.filenames
- the String[] of filenames.
-
FileResourceIterator
Construct a new FileResourceIterator over the specified filenames, relative to the specified base directory.- Parameters:
project
- associated Project instancebasedir
- the base directory of this instance.filenames
- the String[] of filenames.- Since:
- Ant 1.8
-
-
Method Details
-
addFiles
Add an array of filenames to this FileResourceIterator.- Parameters:
s
- the filenames to add.
-
hasNext
-
next
-
remove
-
nextResource
Convenience method to return the next resource.- Returns:
- the next File.
-
FileResourceIterator(Project)