org.histpop.server.wrappers
Class XMLConverter

java.lang.Object
  extended by org.histpop.server.wrappers.XMLConverter
All Implemented Interfaces:
DDIParserController

public class XMLConverter
extends java.lang.Object
implements DDIParserController

This class reads an XML data file and a template and populates the template with the XML data.


Field Summary
protected  HTMLData currentSection
           
protected  HTMLData data
           
protected  HTMLTemplate template
           
protected  java.io.InputStream xmlfile
           
 
Constructor Summary
XMLConverter(java.io.InputStream xmlfile, java.io.InputStream htmlfile)
           
XMLConverter(java.lang.String xmlFileName, java.lang.String TemplateFileName)
           
 
Method Summary
 void add(DDINode node)
           
 void end(DDINode node)
           
 byte[] fill()
           
static void main(java.lang.String[] argv)
           
 void start(DDINode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlfile

protected java.io.InputStream xmlfile

data

protected HTMLData data

currentSection

protected HTMLData currentSection

template

protected HTMLTemplate template
Constructor Detail

XMLConverter

public XMLConverter(java.lang.String xmlFileName,
                    java.lang.String TemplateFileName)
             throws java.lang.Exception
Throws:
java.lang.Exception

XMLConverter

public XMLConverter(java.io.InputStream xmlfile,
                    java.io.InputStream htmlfile)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] argv)

fill

public byte[] fill()

add

public void add(DDINode node)
Specified by:
add in interface DDIParserController

end

public void end(DDINode node)
Specified by:
end in interface DDIParserController

start

public void start(DDINode node)
Specified by:
start in interface DDIParserController