Package org.dspace.content.packager
Class AbstractMETSIngester.MdrefManager
java.lang.Object
org.dspace.content.packager.AbstractMETSIngester.MdrefManager
- All Implemented Interfaces:
METSManifest.Mdref
- Enclosing class:
- AbstractMETSIngester
protected static final class AbstractMETSIngester.MdrefManager
extends Object
implements METSManifest.Mdref
An instance of ZipMdrefManager holds the state needed to retrieve the
contents of an external metadata stream referenced by an
mdRef element in a Zipped up METS manifest.
Initialize it with the Content (ORIGINAL) Bundle containing all of the metadata bitstreams. Match an mdRef by finding the bitstream with the same name.
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(org.jdom2.Element mdref) Make the contents of an external resource mentioned in anmdRefelement available as anInputStream.
-
Method Details
-
getInputStream
public InputStream getInputStream(org.jdom2.Element mdref) throws MetadataValidationException, IOException Make the contents of an external resource mentioned in anmdRefelement available as anInputStream. See theMETSManifest.MdRefinterface for details.- Specified by:
getInputStreamin interfaceMETSManifest.Mdref- Parameters:
mdref- the METS mdRef element to locate the input for.- Returns:
- the input stream of its content.
- Throws:
MetadataValidationException- if validation errorIOException- if IO error- See Also:
-