Package org.fcrepo.migration.foxml
Class NativeFoxmlDirectoryObjectSource
- java.lang.Object
-
- org.fcrepo.migration.foxml.NativeFoxmlDirectoryObjectSource
-
- All Implemented Interfaces:
Iterable<FedoraObjectProcessor>,ObjectSource
public class NativeFoxmlDirectoryObjectSource extends Object implements ObjectSource
An ObjectSource implementation that exposes FOXML from a provided directory.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description NativeFoxmlDirectoryObjectSource(File objectStore, InternalIDResolver resolver, String localFedoraServer)A constructor for use with the data storage directories that underly a fedora 3.x repository.
-
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
-
NativeFoxmlDirectoryObjectSource
public NativeFoxmlDirectoryObjectSource(File objectStore, InternalIDResolver resolver, String localFedoraServer)
A constructor for use with the data storage directories that underly a fedora 3.x repository. First, this constructor will build an index of all of the datastreams in the provided datastreamStore directory for use resolving internal id references within the foxml.- Parameters:
objectStore- a directory containing just directories and FOXML filesresolver- an InternalIDResolver implementation that can resolve references to internally managed datastreams.localFedoraServer- 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>
-
-