org.gjt.xpp.impl.format

Class Recorder

Implemented Interfaces:
XmlRecorder
Known Direct Subclasses:
Formatter

public class Recorder
extends java.lang.Object
implements XmlRecorder

Implementatin of Recorder that is simply writing XML to output sink.
Author:
Aleksander Slominski

Field Summary

protected String[]
declaredNs
protected String[]
declaredPrefixes
protected Writer
out

Constructor Summary

Recorder()

Method Summary

Writer
getOutput()
void
setOutput(Writer out)
void
write(Object o)
void
writeContent(String s)
void
writeEndTag(XmlEndTag etag)
protected void
writeEscaped(String s, boolean escapeApostAttrib)
void
writeNode(XmlNode node)
void
writeStartTag(XmlStartTag stag)
void
writeStartTagAsEndTag(XmlStartTag stag)
void
writeStartTagStart(XmlStartTag stag)
void
writeXml(XmlWritable w)

Field Details

declaredNs

protected String[] declaredNs

declaredPrefixes

protected String[] declaredPrefixes

out

protected Writer out

Constructor Details

Recorder

public Recorder()

Method Details

getOutput

public Writer getOutput()
Specified by:
getOutput in interface XmlRecorder

setOutput

public void setOutput(Writer out)
Specified by:
setOutput in interface XmlRecorder

write

public void write(Object o)
            throws IOException,
                   XmlPullParserException
Specified by:
write in interface XmlRecorder

writeContent

public void writeContent(String s)
            throws IOException,
                   XmlPullParserException
Specified by:
writeContent in interface XmlRecorder

writeEndTag

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

writeEscaped

protected void writeEscaped(String s,
                            boolean escapeApostAttrib)
            throws IOException,
                   XmlPullParserException

writeNode

public void writeNode(XmlNode node)
            throws IOException,
                   XmlPullParserException
Specified by:
writeNode in interface XmlRecorder

writeStartTag

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

writeStartTagAsEndTag

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

writeStartTagStart

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

writeXml

public void writeXml(XmlWritable w)
            throws IOException,
                   XmlPullParserException
Specified by:
writeXml in interface XmlRecorder

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