| Modifier and Type | Field and Description |
|---|---|
protected Filter<File> |
filter |
protected File |
root |
| Constructor and Description |
|---|
FileSystemTreeIterator(File root)
Constructor for an unfiltered file system tree.
|
FileSystemTreeIterator(File root,
Filter<File> filter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
protected boolean |
matches(File f)
Check if a file matches the filter criteria.
|
File |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic FileSystemTreeIterator(File root, Filter<File> filter)
root - root of the file system treefilter - used to filter files returned by the iteratorpublic FileSystemTreeIterator(File root)
root - root of the file system treeprotected boolean matches(File f)
f - the filetrue if the file matches the criteriaCopyright © 2014–2016 Tomas Teubner. All rights reserved.