org.dspace.content.packager
Interface METSManifest.Mdref

All Known Implementing Classes:
AbstractMETSIngester.MdrefManager
Enclosing class:
METSManifest

public static interface METSManifest.Mdref

Callback interface to retrieve data streams in mdRef elements. "Package" or file reader returns an input stream for the given relative path, e.g. to dereference mdRef elements.


Method Summary
 InputStream getInputStream(org.jdom.Element mdRef)
          Make the contents of an external resource mentioned in an mdRef element available as an InputStream.
 

Method Detail

getInputStream

InputStream getInputStream(org.jdom.Element mdRef)
                           throws MetadataValidationException,
                                  IOException,
                                  SQLException,
                                  AuthorizeException
Make the contents of an external resource mentioned in an mdRef element available as an InputStream. The implementation must use the information in the mdRef element, and the state in the object that implements this interface, to find the actual metadata content.

For example, an implementation that ingests a directory of files on the local filesystem would get a relative pathname out of the mdRef and open that file.

Parameters:
mdRef - JDOM element of mdRef in the METS manifest.
Returns:
stream containing the metadata mentioned in mdRef.
Throws:
MetadataValidationException
IOException
SQLException
AuthorizeException


Copyright © 2010 DuraSpace. All Rights Reserved.