Package org.fcrepo.migration.foxml
Class FoxmlDirectoryDFSIterator
- java.lang.Object
-
- org.fcrepo.migration.foxml.FoxmlDirectoryDFSIterator
-
- All Implemented Interfaces:
Iterator<FedoraObjectProcessor>
public class FoxmlDirectoryDFSIterator extends Object implements Iterator<FedoraObjectProcessor>
A depth-first-search iteration over a tree of files that exposes them as FedoraObjectProcessors. Each file in the tree is expected to be a FOXML file. This implementation likely minimizes memory usage for the expected organization of FOXML files on disk.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description FoxmlDirectoryDFSIterator(File root, InternalIDResolver resolver, URLFetcher fetcher, String localFedoraServer, FileFilter fileFilter)foxml directory DFS iterator with three parametersFoxmlDirectoryDFSIterator(File root, URLFetcher fetcher, String localFedoraServer, FileFilter fileFilter)foxml directory DFS iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()FedoraObjectProcessornext()voidremove()-
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
-
-
-
-
Constructor Detail
-
FoxmlDirectoryDFSIterator
public FoxmlDirectoryDFSIterator(File root, URLFetcher fetcher, String localFedoraServer, FileFilter fileFilter)
foxml directory DFS iterator.- Parameters:
root- the root filefetcher- the fetcherlocalFedoraServer- uri to local fedora serverfileFilter- a FileFilter that defined which files should be included in this Iterator.
-
FoxmlDirectoryDFSIterator
public FoxmlDirectoryDFSIterator(File root, InternalIDResolver resolver, URLFetcher fetcher, String localFedoraServer, FileFilter fileFilter)
foxml directory DFS iterator with three parameters- Parameters:
root- the root fileresolver- the resolverfetcher- the fetcherlocalFedoraServer- the domain and port for the server that hosted the fedora objects in the format "localhost:8080".fileFilter- a FileFilter that defined which files should be included in this Iterator.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<FedoraObjectProcessor>
-
next
public FedoraObjectProcessor next()
- Specified by:
nextin interfaceIterator<FedoraObjectProcessor>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<FedoraObjectProcessor>
-
-