public class NullStreamIngestionCrosswalk extends java.lang.Object implements StreamIngestionCrosswalk
Specify this crosswalk in the mapping of e.g. METS metadata field types to crosswalks when you wish to ignore a redundant or unknown type of metadata. For example, when ingesting a DSpace AIP with an AIP ingester, it is best to ignore the rightsMD fields since they are already going to be ingested as member bitstreams anyway.
| Constructor and Description |
|---|
NullStreamIngestionCrosswalk() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMIMEType() |
void |
ingest(Context context,
DSpaceObject dso,
java.io.InputStream in,
java.lang.String MIMEType)
Execute crosswalk on the given object, taking input from the stream.
|
public void ingest(Context context, DSpaceObject dso, java.io.InputStream in, java.lang.String MIMEType) throws CrosswalkException, java.io.IOException, java.sql.SQLException, AuthorizeException
StreamIngestionCrosswalkingest in interface StreamIngestionCrosswalkcontext - the DSpace contextdso - the DSpace Object whose metadata is being ingested.in - input stream containing the metadata.MIMEType - MIME type of the ???CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk this kind of DSpace object.java.io.IOException - I/O failure in services this callsjava.sql.SQLException - Database failure in services this callsAuthorizeException - current user not authorized for this operation.CrosswalkExceptionpublic java.lang.String getMIMEType()
Copyright © 2018 DuraSpace. All Rights Reserved.