org.dspace.content.crosswalk
Interface StreamIngestionCrosswalk


public interface StreamIngestionCrosswalk

A class implementing this interface can crosswalk metadata directly from a stream (assumed to be in a specific format) to the object.

Stream-oriented crosswalks are intended to be used for metadata formats which are either (a) not XML-based, or (b) too bulky for the DOM-ish in-memory model developed for the METS and IMSCP packagers. The METS packagers (all subclasses of AbstractMETSDisseminator / AbstractMETSIngester are equipped to call these crosswalks as well as the XML-based ones, just refer to the desired crosswalk by its plugin name.

Version:
$Revision: 3761 $
Author:
Larry Stone

Method Summary
 void ingest(Context context, DSpaceObject dso, InputStream in, String MIMEType)
          Execute crosswalk on the given object, taking input from the stream.
 

Method Detail

ingest

void ingest(Context context,
            DSpaceObject dso,
            InputStream in,
            String MIMEType)
            throws CrosswalkException,
                   IOException,
                   SQLException,
                   AuthorizeException
Execute crosswalk on the given object, taking input from the stream.

Parameters:
context - the DSpace context
dso - the DSpace Object whose metadata is being ingested.
out - input stream containing the metadata.
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


Copyright © 2010 DuraSpace. All Rights Reserved.