Package ghidra.formats.gfilesystem
Class GFileSystemIterator
java.lang.Object
ghidra.formats.gfilesystem.GFileSystemIterator
Iterates over the
GFiles in a GFileSystem depth-first-
Constructor Summary
ConstructorsConstructorDescriptionGFileSystemIterator(GFile dir) Creates a newGFileSystemIteratorat the givendirectoryGFileSystemIterator(GFile dir, Predicate<GFile> fileFilter) Creates a newGFileSystemIteratorat the givendirectoryCreates a newGFileSystemIteratorat the root of the givenGFileSystem -
Method Summary
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, remove
-
Constructor Details
-
GFileSystemIterator
Creates a newGFileSystemIteratorat the root of the givenGFileSystem- Parameters:
fs- TheGFileSystemto iterate over
-
GFileSystemIterator
Creates a newGFileSystemIteratorat the givendirectory- Parameters:
dir- Thedirectoryto start the iteration at- Throws:
UncheckedIOException- ifdiris not a directory
-
GFileSystemIterator
Creates a newGFileSystemIteratorat the givendirectory- Parameters:
dir- Thedirectoryto start the iteration atfileFilter- A filter to apply to thefilesiterated over- Throws:
UncheckedIOException- ifdiris not a directory
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<GFile>- Throws:
UncheckedIOException- if an IO-related error occurred onGFileSystem.getListing(GFile)
-
next
- Specified by:
nextin interfaceIterator<GFile>- Throws:
NoSuchElementException- if the iteration has no more elementsUncheckedIOException- if an IO-related error occurred onGFileSystem.getListing(GFile)
-