org.histpop.server.wrappers
Class XMLConverter
java.lang.Object
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.
Constructor Summary |
XMLConverter(java.io.InputStream xmlfile,
java.io.InputStream htmlfile)
|
XMLConverter(java.lang.String xmlFileName,
java.lang.String TemplateFileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xmlfile
protected java.io.InputStream xmlfile
data
protected HTMLData data
currentSection
protected HTMLData currentSection
template
protected HTMLTemplate template
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
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