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
mdRefelement 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream(org.jdom.Element mdref)Make the contents of an external resource mentioned in anmdRefelement available as anInputStream.
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream(org.jdom.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:
METSManifest
-
-