|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataAdaptor
An interface for adapting (changing, filtering) analysis input and output data.
The implementation classes will be loaded dynamically - therefore they should have a non-arg constructor.
Method Summary | |
---|---|
void |
process(java.lang.String dataName,
java.io.InputStream source,
java.io.OutputStream result,
Job job)
Read 'source' data, adapt them, and write them back into 'result'. |
java.lang.Object |
processFromList(java.lang.String dataName,
java.util.List source,
Job job)
Read 'source' data, adapt them, and return them back. |
Method Detail |
---|
void process(java.lang.String dataName, java.io.InputStream source, java.io.OutputStream result, Job job) throws java.io.IOException, SoaplabException
dataName
- identifies what data are being adapted; this is
usually a parameter or result name (as defined in the service
metadata). source
- data to be adapted (read, processed). The adaptor
is supposed to close this source stream after reading
it. result
- data to be produced. The adaptor does not need to
close this result stream before returning back - but it
can do it. job
- - the adapting process can benefit from knowing what
jobs calls it (e.g. because of access to the service metadata)
java.io.IOException
- if there were 'physical' problems with
reading or writing data
SoaplabException
- if there were 'logical' problems (for
example, an unexpected source format, or missing pieces in the
source data)java.lang.Object processFromList(java.lang.String dataName, java.util.List source, Job job) throws java.io.IOException, SoaplabException
dataName
- identifies what data are being adapted; this is
usually a parameter or result name (as defined in the service
metadata). source
- data to be adapted (read, processed). job
- - the adapting process can benefit from knowing what
jobs calls it (e.g. because of access to the service metadata)
java.io.IOException
- if there were 'physical' problems with
reading or writing data
SoaplabException
- if there were 'logical' problems (for
example, an unexpected source format, or missing pieces in the
source data)
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |