Package org.dspace.content.packager
Interface METSManifest.Mdref
-
- All Known Implementing Classes:
AbstractMETSIngester.MdrefManager
- Enclosing class:
- METSManifest
public static interface METSManifest.MdrefCallback interface to retrieve data streams in mdRef elements. "Package" or file reader returns an input stream for the given relative path, e.g. to dereferencemdRefelements.
-
-
Method Summary
All Methods Instance Methods Abstract 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
InputStream getInputStream(org.jdom.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
-
-