java.lang.Iterable<ClassFile>, ClassFileIteratorpublic class DirectoryIterator extends java.lang.Object implements ClassFileIterator
| Constructor | Description |
|---|---|
DirectoryIterator(java.io.File rootDirectory,
boolean changeInto) |
Creates a directory iterator.
|
| Modifier and Type | Method | Description |
|---|---|---|
ClassFile |
getNextClassFile() |
Template method to allow subclasses to supply elements for the
iteration.
|
iteratorpublic 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.public ClassFile getNextClassFile()
getNextClassFile in interface ClassFileIterator