edu.cmu.sphinx.tools.gui.writer
Class XMLConfigWriter

java.lang.Object
  extended by edu.cmu.sphinx.tools.gui.writer.XMLConfigWriter
All Implemented Interfaces:
GUIWriter

public class XMLConfigWriter
extends java.lang.Object
implements GUIWriter

This class is a type of GUIWriter that write output to .config.xml format

Author:
Ariani

Method Summary
static XMLConfigWriter getInstance()
          Singleton constructor of XMLConfigWriter ; only one instance is created for the whole system
 java.lang.String getOutput(ConfigProperties configProp)
          This method is inherited from GUIWriter interface.
 boolean writeOutput(ConfigProperties configProp, java.io.File fFile)
          This method is inherited from GUIWriter interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XMLConfigWriter getInstance()
Singleton constructor of XMLConfigWriter ; only one instance is created for the whole system

Returns:
reference to XMLConfigWriter

writeOutput

public boolean writeOutput(ConfigProperties configProp,
                           java.io.File fFile)
                    throws GUIWriterException
This method is inherited from GUIWriter interface. Will write output to .config.xml format

Specified by:
writeOutput in interface GUIWriter
Parameters:
configProp - Holds the property name-values
fFile - Output file
Throws:
GUIWriterException - writing error

getOutput

public java.lang.String getOutput(ConfigProperties configProp)
                           throws GUIWriterException
This method is inherited from GUIWriter interface. Will return configuration values for output

Specified by:
getOutput in interface GUIWriter
Parameters:
configProp - Holds the property name-values
Returns:
String configuration value as text
Throws:
GUIWriterException - writing error