org.dspace.content.crosswalk
Class NullStreamIngestionCrosswalk
java.lang.Object
org.dspace.content.crosswalk.NullStreamIngestionCrosswalk
- All Implemented Interfaces:
- StreamIngestionCrosswalk
public class NullStreamIngestionCrosswalk
- extends Object
- implements StreamIngestionCrosswalk
A crosswalk to ignore and dispose of the ingested material.
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.
- Version:
- $Revision: 1.0 $
- Author:
- Larry Stone
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullStreamIngestionCrosswalk
public NullStreamIngestionCrosswalk()
ingest
public void ingest(Context context,
DSpaceObject dso,
InputStream in,
String MIMEType)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
- Description copied from interface:
StreamIngestionCrosswalk
- Execute crosswalk on the given object, taking input from the stream.
- Specified by:
ingest in interface StreamIngestionCrosswalk
- Parameters:
context - the DSpace contextdso - the DSpace Object whose metadata is being ingested.in - input stream containing the metadata.MIMEType - MIME type of the ???
- Throws:
CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.
CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk this kind of DSpace object.
IOException - I/O failure in services this calls
SQLException - Database failure in services this calls
AuthorizeException - current user not authorized for this operation.
CrosswalkException
getMIMEType
public String getMIMEType()
Copyright © 2012 DuraSpace. All Rights Reserved.