Package org.fcrepo.migration.foxml
Class FoxmlInputStreamFedoraObjectProcessor
- java.lang.Object
-
- org.fcrepo.migration.foxml.FoxmlInputStreamFedoraObjectProcessor
-
- All Implemented Interfaces:
AutoCloseable,FedoraObjectProcessor
public class FoxmlInputStreamFedoraObjectProcessor extends Object implements FedoraObjectProcessor
A FedoraObjectProcessor implementation that uses the STaX API to process a FOXML XML InputStream.- Author:
- mdurbin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFoxmlInputStreamFedoraObjectProcessor.Foxml11DatastreamVersion
-
Constructor Summary
Constructors Constructor Description FoxmlInputStreamFedoraObjectProcessor(InputStream is, URLFetcher fetcher, InternalIDResolver resolver, String localFedoraServer)foxml input stream fedora object processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close resources associated to the processorObjectInfogetObjectInfo()get object information.voidprocessObject(StreamingFedoraObjectHandler handler)process the object.
-
-
-
Constructor Detail
-
FoxmlInputStreamFedoraObjectProcessor
public FoxmlInputStreamFedoraObjectProcessor(InputStream is, URLFetcher fetcher, InternalIDResolver resolver, String localFedoraServer) throws XMLStreamException
foxml input stream fedora object processor.- Parameters:
is- the input streamfetcher- the fetcherresolver- the resolverlocalFedoraServer- the host and port (formatted like "localhost:8080") of the fedora 3 server from which the content exposed by the "is" parameter comes.- Throws:
XMLStreamException- xml stream exception
-
-
Method Detail
-
getObjectInfo
public ObjectInfo getObjectInfo()
Description copied from interface:FedoraObjectProcessorget object information.- Specified by:
getObjectInfoin interfaceFedoraObjectProcessor- Returns:
- the object info
-
processObject
public void processObject(StreamingFedoraObjectHandler handler)
Description copied from interface:FedoraObjectProcessorprocess the object.- Specified by:
processObjectin interfaceFedoraObjectProcessor- Parameters:
handler- the handler
-
close
public void close()
Close resources associated to the processor- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFedoraObjectProcessor
-
-