net.sourceforge.taverna.scuflworkers.ncbi
Class NCBIXMLStreamProcessor

java.lang.Object
  extended by net.sourceforge.taverna.scuflworkers.ncbi.ReplacementStreamProcessor
      extended by net.sourceforge.taverna.scuflworkers.ncbi.NCBIXMLStreamProcessor
All Implemented Interfaces:
StreamProcessor
Direct Known Subclasses:
NCBIXSLTStreamProcessor

public class NCBIXMLStreamProcessor
extends ReplacementStreamProcessor
implements StreamProcessor

This class cleans up NCBI pseudoXML embedded in HTML pages, and turns it into valid XML. Last edited by $Author: sowen70 $

Version:
$Revision: 1.3 $
Author:
mfortner

Constructor Summary
NCBIXMLStreamProcessor()
           
NCBIXMLStreamProcessor(java.util.Map outputMap, java.lang.String startTag, java.lang.String endTag, java.lang.String outputFile, java.lang.String ext)
          Constructor
 
Method Summary
 java.lang.String getEndTag()
           
 java.util.Map getOutputMap()
           
 java.lang.String getStartTag()
           
 java.util.Map processStream(java.io.InputStream stream)
          This method processes a stream of text from a URL endpoint.
 void setEndTag(java.lang.String endTag)
           
 void setOutputMap(java.util.Map outputMap)
           
 void setStartTag(java.lang.String startTag)
           
 
Methods inherited from class net.sourceforge.taverna.scuflworkers.ncbi.ReplacementStreamProcessor
getOldText, getReplacementText, setOldText, setReplacementText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCBIXMLStreamProcessor

public NCBIXMLStreamProcessor()

NCBIXMLStreamProcessor

public NCBIXMLStreamProcessor(java.util.Map outputMap,
                              java.lang.String startTag,
                              java.lang.String endTag,
                              java.lang.String outputFile,
                              java.lang.String ext)
Constructor

Parameters:
filename - The output filename
Method Detail

processStream

public java.util.Map processStream(java.io.InputStream stream)
                            throws java.io.IOException
This method processes a stream of text from a URL endpoint.

Specified by:
processStream in interface StreamProcessor
Overrides:
processStream in class ReplacementStreamProcessor
Parameters:
stream -
Throws:
java.io.IOException

getEndTag

public java.lang.String getEndTag()
Returns:
Returns the endTag.

setEndTag

public void setEndTag(java.lang.String endTag)
Parameters:
endTag - The endTag to set.

getOutputMap

public java.util.Map getOutputMap()
Returns:
Returns the outputMap.

setOutputMap

public void setOutputMap(java.util.Map outputMap)
Parameters:
outputMap - The outputMap to set.

getStartTag

public java.lang.String getStartTag()
Returns:
Returns the startTag.

setStartTag

public void setStartTag(java.lang.String startTag)
Parameters:
startTag - The startTag to set.