Package 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
Modifier and TypeMethodDescriptiongetInputStream(org.jdom2.Element mdRef) Make the contents of an external resource mentioned in anmdRefelement available as anInputStream.
-
Method Details
-
getInputStream
InputStream getInputStream(org.jdom2.Element mdRef) throws MetadataValidationException, PackageValidationException, IOException, SQLException, AuthorizeException Make the contents of an external resource mentioned in anmdRefelement available as anInputStream. The implementation must use the information in themdRefelement, 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
mdRefand open that file.- Parameters:
mdRef- JDOM element of mdRef in the METS manifest.- Returns:
- stream containing the metadata mentioned in mdRef.
- Throws:
MetadataValidationException- if the mdRef is unacceptable or missing required information.PackageValidationException- if package validation errorIOException- if IO errorSQLException- if database errorAuthorizeException- if authorization error
-