Package org.fcrepo.migration
Interface FedoraObjectProcessor
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FoxmlInputStreamFedoraObjectProcessor
public interface FedoraObjectProcessor extends AutoCloseable
A class that encapsulates an object for processing. This class represents a single object and exposes methods to query basic information about it and then to process it with an arbitrary StreamingFedoraObjectHandler.- Author:
- mdurbin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close resources associated to the processorObjectInfogetObjectInfo()get object information.voidprocessObject(StreamingFedoraObjectHandler handler)process the object.
-
-
-
Method Detail
-
getObjectInfo
ObjectInfo getObjectInfo()
get object information.- Returns:
- the object info
-
processObject
void processObject(StreamingFedoraObjectHandler handler) throws XMLStreamException
process the object.- Parameters:
handler- the handler- Throws:
XMLStreamException- xml stream exception
-
close
void close()
Close resources associated to the processor- Specified by:
closein interfaceAutoCloseable
-
-