Class XMLWriter

java.lang.Object
  extended by XMLWriter

public class XMLWriter
extends java.lang.Object

This class takes care of writing distilled XML-events to the output-files given as parameters on the command line.


Field Summary
 java.io.File genxml_file
           
 java.io.FileWriter genxml_fw
           
 java.lang.String genxml_name
           
 java.io.File tqlxml_file
           
 java.io.FileWriter tqlxml_fw
           
 java.lang.String tqlxml_name
           
 
Constructor Summary
XMLWriter(java.lang.String gen, java.lang.String tql)
          To create this Writer, it needs pathname to one or both files to be written.
 
Method Summary
 void closeXML()
          Flush the writer and close the output files.
 void writeGENEvent(GEvent e)
          Write a GENIA/GOLD-event to the output files.
 void writeTQLEvent(Event e)
          Write a TQL/TEST-event to the output files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tqlxml_name

public java.lang.String tqlxml_name

tqlxml_file

public java.io.File tqlxml_file

tqlxml_fw

public java.io.FileWriter tqlxml_fw

genxml_name

public java.lang.String genxml_name

genxml_file

public java.io.File genxml_file

genxml_fw

public java.io.FileWriter genxml_fw
Constructor Detail

XMLWriter

public XMLWriter(java.lang.String gen,
                 java.lang.String tql)
To create this Writer, it needs pathname to one or both files to be written.

Parameters:
gen - the golden destillation file
tql - the test destillation file
Method Detail

writeTQLEvent

public void writeTQLEvent(Event e)
Write a TQL/TEST-event to the output files.

Parameters:
e - the event to be written

writeGENEvent

public void writeGENEvent(GEvent e)
Write a GENIA/GOLD-event to the output files.

Parameters:
e - the event to be written

closeXML

public void closeXML()
Flush the writer and close the output files.