Package org.gjt.xpp.impl.format
Class Formatter
java.lang.Object
org.gjt.xpp.impl.format.Recorder
org.gjt.xpp.impl.format.Formatter
- All Implemented Interfaces:
XmlFormatter
,XmlRecorder
Implementatin of Recorder that is simply writing XML to output sink.
- Author:
- Aleksander Slominski
-
Field Summary
Fields inherited from class org.gjt.xpp.impl.format.Recorder
declaredNs, declaredPrefixes, out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
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 Details
-
Formatter
public Formatter()
-
-
Method Details
-
isEndTagNewLine
public boolean isEndTagNewLine()Description copied from interface:XmlFormatter
Should new line be added after end tag?- Specified by:
isEndTagNewLine
in interfaceXmlFormatter
- See Also:
-
setEndTagNewLine
public void setEndTagNewLine(boolean enable) Should new line be added after end tag?- Specified by:
setEndTagNewLine
in interfaceXmlFormatter
-
writeEndTag
- Specified by:
writeEndTag
in interfaceXmlRecorder
- Overrides:
writeEndTag
in classRecorder
- Throws:
IOException
XmlPullParserException
-
writeStartTagAsEndTag
- Specified by:
writeStartTagAsEndTag
in interfaceXmlRecorder
- Overrides:
writeStartTagAsEndTag
in classRecorder
- Throws:
IOException
XmlPullParserException
-