Package org.fcrepo.migration.foxml
Class ArchiveExportedFoxmlDirectoryObjectSource
- java.lang.Object
-
- org.fcrepo.migration.foxml.ArchiveExportedFoxmlDirectoryObjectSource
-
- All Implemented Interfaces:
Iterable<FedoraObjectProcessor>,ObjectSource
public class ArchiveExportedFoxmlDirectoryObjectSource extends Object implements ObjectSource
An ObjectSource implementation that exposes FOXML from a provided directory. The FOXML is expected to have been produced using the export API method with the "archive" context. As such, each file will be a completely self-contained serialization of the Fedora 3 object.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description ArchiveExportedFoxmlDirectoryObjectSource(File exportDir, String localFedoraServer)archive exported foxml directory object source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<FedoraObjectProcessor>iterator()voidsetFetcher(URLFetcher fetcher)set the fetcher.voidsetFileFilter(FileFilter fileFilter)Sets a FileFilter to determine which files will be considered as object files in the source directories.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ArchiveExportedFoxmlDirectoryObjectSource
public ArchiveExportedFoxmlDirectoryObjectSource(File exportDir, String localFedoraServer)
archive exported foxml directory object source.- Parameters:
exportDir- the export directorylocalFedoraServer- the domain and port for the server that hosted the fedora objects in the format "localhost:8080".
-
-
Method Detail
-
setFetcher
public void setFetcher(URLFetcher fetcher)
set the fetcher.- Parameters:
fetcher- the fetcher
-
setFileFilter
public void setFileFilter(FileFilter fileFilter)
Sets a FileFilter to determine which files will be considered as object files in the source directories.- Parameters:
fileFilter- a FileFilter implementation
-
iterator
public Iterator<FedoraObjectProcessor> iterator()
- Specified by:
iteratorin interfaceIterable<FedoraObjectProcessor>
-
-