|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.output.PanTxtFormatter
org.quattor.pan.output.TxtFormatter
public class TxtFormatter
| Method Summary | |
|---|---|
String |
getFileExtension()
Return the file extension for files written with this formatter. |
String |
getFormatKey()
Returns the name of the formatter that will be used to identify it. |
static TxtFormatter |
getInstance()
creation of a singleton |
void |
write(Element root,
String rootname,
PrintWriter ps)
Reads the configuration tree and writes it in an xml file. |
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. |
| Methods inherited from class org.quattor.pan.output.PanTxtFormatter |
|---|
readChild, tabMaker |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TxtFormatter getInstance()
public String getFileExtension()
Formatter
public String getFormatKey()
Formatter
public void write(Element root,
String rootname,
PrintWriter ps)
PanTxtFormatter
write in interface Formatterwrite in class PanTxtFormatterroot - root element of the treerootname - name of the root elementps - the PrintWriter
public void writeBegin(PrintWriter ps,
String nbTab,
String name,
int n,
String s)
PanTxtFormatter
writeBegin 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 element
public void writeEnd(PrintWriter ps,
String s1,
String s)
PanTxtFormatter
writeEnd in class PanTxtFormatterps - PrintWriters1 - number of tab to write before texts - type of the element
public void writeProperties(PrintWriter ps,
String nbTab,
String name,
String type,
String value)
PanTxtFormatter
writeProperties in class PanTxtFormatterps - PrintWriternbTab - number of tab to write before textname - name of the elementtype - type of the elementvalue - value of the element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||