Package kilim.analysis
Class DirIterator
java.lang.Object
kilim.analysis.FileContainer
kilim.analysis.DirIterator
- All Implemented Interfaces:
Iterator<FileLister.Entry>
Preorder traversal of a directory. Returns everything including directory
names.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()next()(package private) FileLister.Entryvoidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
root
-
rootpath
String rootpath -
stack
-
-
Constructor Details
-
DirIterator
DirIterator(File f)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
open
- Specified by:
openin classFileContainer- Throws:
IOException
-