|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.xpp.impl.format.Recorder
org.gjt.xpp.impl.format.Formatter
public class Formatter
Implementatin of Recorder that is simply writing XML to output sink.
| Field Summary |
|---|
| Fields inherited from class org.gjt.xpp.impl.format.Recorder |
|---|
declaredNs, declaredPrefixes, out |
| Constructor Summary | |
|---|---|
Formatter()
|
|
| Method Summary | |
|---|---|
boolean |
isEndTagNewLine()
Should new line be added after end tag? |
void |
setEndTagNewLine(boolean enable)
Should new line be added after end tag? |
void |
writeEndTag(XmlEndTag etag)
|
void |
writeStartTagAsEndTag(XmlStartTag stag)
|
| Methods inherited from class org.gjt.xpp.impl.format.Recorder |
|---|
getOutput, setOutput, write, writeContent, writeEscaped, writeNode, writeStartTag, writeStartTagStart, writeXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gjt.xpp.XmlRecorder |
|---|
getOutput, setOutput, write, writeContent, writeNode, writeStartTag, writeStartTagStart, writeXml |
| Constructor Detail |
|---|
public Formatter()
| Method Detail |
|---|
public boolean isEndTagNewLine()
XmlFormatter
isEndTagNewLine in interface XmlFormatterXmlFormatter.setEndTagNewLine(boolean)public void setEndTagNewLine(boolean enable)
setEndTagNewLine in interface XmlFormatter
public void writeEndTag(XmlEndTag etag)
throws java.io.IOException,
XmlPullParserException
writeEndTag in interface XmlRecorderwriteEndTag in class Recorderjava.io.IOException
XmlPullParserException
public void writeStartTagAsEndTag(XmlStartTag stag)
throws java.io.IOException,
XmlPullParserException
writeStartTagAsEndTag in interface XmlRecorderwriteStartTagAsEndTag in class Recorderjava.io.IOException
XmlPullParserException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||