org.eclipse.ohf.ihe.xds.metadata.extract
Class InputStreamSubmissionSetExtractor

java.lang.Object
  extended by org.eclipse.ohf.ihe.xds.metadata.extract.InputStreamSubmissionSetExtractor
All Implemented Interfaces:
SubmissionSetExtractor

public class InputStreamSubmissionSetExtractor
extends java.lang.Object
implements SubmissionSetExtractor

Extracts metadata from a metadata.xsd conformant InputStream and populates an instance of a Submission Set.

Author:
Sarah Knoop

Field Summary
static java.lang.String DESCRIPTOR
          Descriptor for Extractor
 
Constructor Summary
InputStreamSubmissionSetExtractor(java.io.InputStream subSetInputStream)
          Creates an extractor for the InputStream given.
 
Method Summary
 SubmissionSetType extract()
          Renders a SubmissionSetType object from a InputStream containing a single instance of a SubmissionSetType conformant to the metadata.xsd.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final java.lang.String DESCRIPTOR
Descriptor for Extractor

See Also:
Constant Field Values
Constructor Detail

InputStreamSubmissionSetExtractor

public InputStreamSubmissionSetExtractor(java.io.InputStream subSetInputStream)
Creates an extractor for the InputStream given. InputStream must contain a single instance of a SubmissionSetType conformant to the metadata.xsd.

Parameters:
subSetInputStream -
Method Detail

extract

public SubmissionSetType extract()
                          throws MetadataExtractionException
Renders a SubmissionSetType object from a InputStream containing a single instance of a SubmissionSetType conformant to the metadata.xsd.

Specified by:
extract in interface SubmissionSetExtractor
Throws:
MetadataExtractionException
See Also:
SubmissionSetExtractor.extract()