org.gjt.xpp.impl.format

Class Formatter

Implemented Interfaces:
XmlFormatter, XmlRecorder

public class Formatter
extends Recorder
implements XmlFormatter

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

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, writeEndTag, writeEscaped, writeNode, writeStartTag, writeStartTagAsEndTag, writeStartTagStart, writeXml

Constructor Details

Formatter

public Formatter()

Method Details

isEndTagNewLine

public boolean isEndTagNewLine()
Should new line be added after end tag?
Specified by:
isEndTagNewLine in interface XmlFormatter

setEndTagNewLine

public void setEndTagNewLine(boolean enable)
Should new line be added after end tag?
Specified by:
setEndTagNewLine in interface XmlFormatter

writeEndTag

public void writeEndTag(XmlEndTag etag)
            throws IOException,
                   XmlPullParserException
Specified by:
writeEndTag in interface XmlRecorder
Overrides:
writeEndTag in interface Recorder

writeStartTagAsEndTag

public void writeStartTagAsEndTag(XmlStartTag stag)
            throws IOException,
                   XmlPullParserException
Specified by:
writeStartTagAsEndTag in interface XmlRecorder
Overrides:
writeStartTagAsEndTag in interface Recorder

Copyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.

Note this package is deprecated by XPP3 that implements XmlPull API