public class TxtFormatter extends PanTxtFormatter
| Modifier and Type | Method and Description |
|---|---|
static TxtFormatter |
getInstance() |
void |
write(Element root,
String rootname,
PrintWriter ps)
Reads the configuration tree and writes it in an xml file.
|
void |
write(FinalResult result,
PrintWriter ps) |
void |
writeBegin(PrintWriter ps,
String nbTab,
String name,
int n,
String s)
Writes in the PrintWriter.
|
void |
writeEnd(PrintWriter ps,
String s1,
String s)
Writes end tags in the PrintWriter for PanFormatter.
|
void |
writeProperties(PrintWriter ps,
String nbTab,
String name,
String type,
String value)
Writes in the PrintWriter.
|
readChild, tabMakergetFormatKey, getPrintWriter, getResultURI, writepublic static TxtFormatter getInstance()
public void write(FinalResult result, PrintWriter ps) throws Exception
write in class AbstractFormatterExceptionpublic void write(Element root, String rootname, PrintWriter ps)
PanTxtFormatterwrite in class PanTxtFormatterroot - root element of the treerootname - name of the root elementps - the PrintWriterpublic void writeBegin(PrintWriter ps, String nbTab, String name, int n, String s)
PanTxtFormatterwriteBegin in class PanTxtFormatterps - PrintWriternbTab - number of tab to write before textname - name of the elementn - level of the node in the trees - type of the elementpublic void writeEnd(PrintWriter ps, String s1, String s)
PanTxtFormatterwriteEnd in class PanTxtFormatterps - PrintWriters1 - number of tab to write before texts - type of the elementpublic void writeProperties(PrintWriter ps, String nbTab, String name, String type, String value)
PanTxtFormatterwriteProperties in class PanTxtFormatterps - PrintWriternbTab - number of tab to write before textname - name of the elementtype - type of the elementvalue - value of the elementCopyright © 2014 Quattor. All Rights Reserved.