| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.depend.DirectoryIterator
public class DirectoryIterator
An iterator which iterates through the contents of a java directory. The iterator should be created with the directory at the root of the Java namespace.
| Constructor Summary | |
|---|---|
| DirectoryIterator(java.io.File rootDirectory,
                  boolean changeInto)Creates a directory iterator. | |
| Method Summary | |
|---|---|
|  ClassFile | getNextClassFile()Template method to allow subclasses to supply elements for the iteration. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DirectoryIterator(java.io.File rootDirectory,
                         boolean changeInto)
                  throws java.io.IOException
rootDirectory - the root if the directory namespace which is to
      be iterated overchangeInto - if true then the returned entries will be relative
      to the rootDirectory and not the current directory.
java.io.IOException - if there is a problem reading the directory
      information.| Method Detail | 
|---|
public ClassFile getNextClassFile()
getNextClassFile in interface ClassFileIterator| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||