org.dspace.content.packager
Class AbstractMETSIngester.MdrefManager

java.lang.Object
  extended by 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
 InputStream getInputStream(org.jdom.Element mdref)
          Make the contents of an external resource mentioned in an mdRef element available as an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInputStream

public InputStream getInputStream(org.jdom.Element mdref)
                           throws MetadataValidationException,
                                  IOException
Make the contents of an external resource mentioned in an mdRef element available as an InputStream. See the METSManifest.MdRef interface for details.

Specified by:
getInputStream in interface METSManifest.Mdref
Parameters:
mdref - the METS mdRef element to locate the input for.
Returns:
the input stream of its content.
Throws:
MetadataValidationException - if the mdRef is unacceptable or missing required information.
IOException - if it is returned by services called by this method.
See Also:
METSManifest


Copyright © 2012 DuraSpace. All Rights Reserved.