net.sourceforge.taverna.scuflworkers.ncbi
Class NCBIXSLTStreamProcessor
java.lang.Object
net.sourceforge.taverna.scuflworkers.ncbi.ReplacementStreamProcessor
net.sourceforge.taverna.scuflworkers.ncbi.NCBIXMLStreamProcessor
net.sourceforge.taverna.scuflworkers.ncbi.NCBIXSLTStreamProcessor
- All Implemented Interfaces:
- StreamProcessor
public class NCBIXSLTStreamProcessor
- extends NCBIXMLStreamProcessor
This class is capable of downloading, cleaning up and transforming NCBI XML.
The transformed XML is placed in the outputMap using the "resultsXml" key.
If the outputFile parameter is specified, then the class will write the
transformed xml out to the specified file.
Last edited by $Author: sowen70 $
- Version:
- $Revision: 1.3 $
- Author:
- Mark
|
Constructor Summary |
NCBIXSLTStreamProcessor(java.util.Map outputMap,
java.lang.String startTag,
java.lang.String endTag,
java.lang.String xslt,
java.lang.String outputFile)
|
|
Method Summary |
java.util.Map |
processStream(java.io.InputStream stream)
This method processes the input stream and places the results in the
output map. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NCBIXSLTStreamProcessor
public NCBIXSLTStreamProcessor(java.util.Map outputMap,
java.lang.String startTag,
java.lang.String endTag,
java.lang.String xslt,
java.lang.String outputFile)
processStream
public java.util.Map processStream(java.io.InputStream stream)
throws java.io.IOException
- This method processes the input stream and places the results in the
output map.
- Specified by:
processStream in interface StreamProcessor- Overrides:
processStream in class NCBIXMLStreamProcessor
- Throws:
java.io.IOException- See Also:
StreamProcessor.processStream(java.io.InputStream)