20 package net.sf.gridarta.model.io;
23 import java.util.Arrays;
24 import java.util.Iterator;
25 import java.util.NoSuchElementException;
26 import org.jetbrains.annotations.NotNull;
57 final File[] tmp = dir.listFiles();
67 return pos < files.length;
72 if (pos >= files.length) {
73 throw new NoSuchElementException();
76 final File result = files[pos++];
82 public void remove() {
83 throw new UnsupportedOperationException();
90 while (pos < files.length && files[pos].getName().equalsIgnoreCase(
".svn")) {
An Iterator that iterates non-recursively over the contents of a directory.
void skipSpecialNames()
Skips special files that should be always ignored.
final File [] files
The files to return.
int pos
The current index into files.
FlatFileIterator(final File dir)
Creates a new instance.
static final File [] EMPTY_FILE_ARRAY
An empty array of Files.