public class FlatFileIterator
extends java.lang.Object
implements java.util.Iterator<java.io.File>
Iterator that iterates non-recursively over the contents of a
directory.| Constructor and Description |
|---|
FlatFileIterator(@NotNull java.io.File dir)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.io.File |
next() |
void |
remove() |
public FlatFileIterator(@NotNull
@NotNull java.io.File dir)
dir - the directory to listpublic boolean hasNext()
hasNext in interface java.util.Iterator<java.io.File>public java.io.File next()
next in interface java.util.Iterator<java.io.File>public void remove()
remove in interface java.util.Iterator<java.io.File>