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