Package ghidra.formats.gfilesystem
Class GFileSystemIterator
java.lang.Object
ghidra.formats.gfilesystem.GFileSystemIterator
Iterates over the
GFile
s in a GFileSystem
depth-first-
Constructor Summary
ConstructorsConstructorDescriptionGFileSystemIterator
(GFile dir) Creates a newGFileSystemIterator
at the givendirectory
GFileSystemIterator
(GFile dir, Predicate<GFile> fileFilter) Creates a newGFileSystemIterator
at the givendirectory
Creates a newGFileSystemIterator
at the root of the givenGFileSystem
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
GFileSystemIterator
Creates a newGFileSystemIterator
at the root of the givenGFileSystem
- Parameters:
fs
- TheGFileSystem
to iterate over
-
GFileSystemIterator
Creates a newGFileSystemIterator
at the givendirectory
- Parameters:
dir
- Thedirectory
to start the iteration at- Throws:
UncheckedIOException
- ifdir
is not a directory
-
GFileSystemIterator
Creates a newGFileSystemIterator
at the givendirectory
- Parameters:
dir
- Thedirectory
to start the iteration atfileFilter
- A filter to apply to thefiles
iterated over- Throws:
UncheckedIOException
- ifdir
is not a directory
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<GFile>
- Throws:
UncheckedIOException
- if an IO-related error occurred onGFileSystem.getListing(GFile)
-
next
- Specified by:
next
in interfaceIterator<GFile>
- Throws:
NoSuchElementException
- if the iteration has no more elementsUncheckedIOException
- if an IO-related error occurred onGFileSystem.getListing(GFile)
-