public class LicenseStreamIngestionCrosswalk extends Object implements StreamIngestionCrosswalk
Note that this is NOT needed when ingesting a DSpace AIP, since the deposit license is stored as a Bitstream (or two) in a dedicated Bundle; the normal apparatus of ingestig the AIP will restore that Bitstream with its proper name and thus the presence of the deposit license.
This crosswalk should only be used when ingesting other kinds of SIPs.
Constructor and Description |
---|
LicenseStreamIngestionCrosswalk() |
Modifier and Type | Method and Description |
---|---|
String |
getMIMEType() |
void |
ingest(Context context,
DSpaceObject dso,
InputStream in,
String MIMEType)
Execute crosswalk on the given object, taking input from the stream.
|
public void ingest(Context context, DSpaceObject dso, InputStream in, String MIMEType) throws CrosswalkException, IOException, SQLException, AuthorizeException
StreamIngestionCrosswalk
ingest
in interface StreamIngestionCrosswalk
context
- 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.IOException
- I/O failure in services this callsSQLException
- Database failure in services this callsAuthorizeException
- current user not authorized for this operation.CrosswalkException
public String getMIMEType()
Copyright © 2016 DuraSpace. All Rights Reserved.