Package org.gjt.xpp.impl.format
Class Recorder
- java.lang.Object
-
- org.gjt.xpp.impl.format.Recorder
-
- All Implemented Interfaces:
XmlRecorder
- Direct Known 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
Fields Modifier and Type Field Description protected java.lang.String[]
declaredNs
protected java.lang.String[]
declaredPrefixes
protected java.io.Writer
out
-
Constructor Summary
Constructors Constructor Description Recorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Writer
getOutput()
void
setOutput(java.io.Writer out)
void
write(java.lang.Object o)
void
writeContent(java.lang.String s)
void
writeEndTag(XmlEndTag etag)
protected void
writeEscaped(java.lang.String s, boolean escapeApostAttrib)
void
writeNode(XmlNode node)
void
writeStartTag(XmlStartTag stag)
void
writeStartTagAsEndTag(XmlStartTag stag)
void
writeStartTagStart(XmlStartTag stag)
void
writeXml(XmlWritable w)
-
-
-
Method Detail
-
getOutput
public java.io.Writer getOutput()
- Specified by:
getOutput
in interfaceXmlRecorder
-
setOutput
public void setOutput(java.io.Writer out)
- Specified by:
setOutput
in interfaceXmlRecorder
-
write
public void write(java.lang.Object o) throws java.io.IOException, XmlPullParserException
- Specified by:
write
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeXml
public void writeXml(XmlWritable w) throws java.io.IOException, XmlPullParserException
- Specified by:
writeXml
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeContent
public void writeContent(java.lang.String s) throws java.io.IOException, XmlPullParserException
- Specified by:
writeContent
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeEndTag
public void writeEndTag(XmlEndTag etag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeEndTag
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeStartTag
public void writeStartTag(XmlStartTag stag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeStartTag
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeStartTagStart
public void writeStartTagStart(XmlStartTag stag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeStartTagStart
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeStartTagAsEndTag
public void writeStartTagAsEndTag(XmlStartTag stag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeStartTagAsEndTag
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeNode
public void writeNode(XmlNode node) throws java.io.IOException, XmlPullParserException
- Specified by:
writeNode
in interfaceXmlRecorder
- Throws:
java.io.IOException
XmlPullParserException
-
writeEscaped
protected void writeEscaped(java.lang.String s, boolean escapeApostAttrib) throws java.io.IOException, XmlPullParserException
- Throws:
java.io.IOException
XmlPullParserException
-
-