Class FileResourceIterator
java.lang.Object
org.apache.tools.ant.types.resources.FileResourceIterator
Iterator of FileResources from filenames.
- Since:
- Ant 1.7
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.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 SummaryModifier and TypeMethodDescriptionvoidAdd an array of filenames to this FileResourceIterator.booleanhasNext()Find out whether this FileResourceIterator has more elements.next()Get the next element from this FileResourceIterator.Convenience method to return the next resource.voidremove()Not implemented.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
FileResourceIteratorDeprecated.in favor ofFileResourceIterator(Project)Construct a new FileResourceIterator.
- 
FileResourceIteratorCreate a new FileResourceIterator.- Parameters:
- project- associated Project instance
- Since:
- Ant 1.8
 
- 
FileResourceIteratorDeprecated.in favor ofFileResourceIterator(Project, File)Construct a new FileResourceIterator relative to the specified base directory.- Parameters:
- basedir- the base directory of this instance.
 
- 
FileResourceIteratorConstruct a new FileResourceIterator relative to the specified base directory.- Parameters:
- project- associated Project instance
- basedir- the base directory of this instance.
- Since:
- Ant 1.8
 
- 
FileResourceIteratorDeprecated.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.
 
- 
FileResourceIteratorConstruct a new FileResourceIterator over the specified filenames, relative to the specified base directory.- Parameters:
- project- associated Project instance
- basedir- the base directory of this instance.
- filenames- the String[] of filenames.
- Since:
- Ant 1.8
 
 
- 
- 
Method Details- 
addFilesAdd an array of filenames to this FileResourceIterator.- Parameters:
- s- the filenames to add.
 
- 
hasNextpublic boolean hasNext()Find out whether this FileResourceIterator has more elements.
- 
nextGet the next element from this FileResourceIterator.
- 
removepublic void remove()Not implemented.
- 
nextResourceConvenience method to return the next resource.- Returns:
- the next File.
 
 
- 
FileResourceIterator(Project)