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[]declaredNsprotected java.lang.String[]declaredPrefixesprotected java.io.Writerout
-
Constructor Summary
Constructors Constructor Description Recorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.WritergetOutput()voidsetOutput(java.io.Writer out)voidwrite(java.lang.Object o)voidwriteContent(java.lang.String s)voidwriteEndTag(XmlEndTag etag)protected voidwriteEscaped(java.lang.String s, boolean escapeApostAttrib)voidwriteNode(XmlNode node)voidwriteStartTag(XmlStartTag stag)voidwriteStartTagAsEndTag(XmlStartTag stag)voidwriteStartTagStart(XmlStartTag stag)voidwriteXml(XmlWritable w)
-
-
-
Method Detail
-
getOutput
public java.io.Writer getOutput()
- Specified by:
getOutputin interfaceXmlRecorder
-
setOutput
public void setOutput(java.io.Writer out)
- Specified by:
setOutputin interfaceXmlRecorder
-
write
public void write(java.lang.Object o) throws java.io.IOException, XmlPullParserException- Specified by:
writein interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeXml
public void writeXml(XmlWritable w) throws java.io.IOException, XmlPullParserException
- Specified by:
writeXmlin interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeContent
public void writeContent(java.lang.String s) throws java.io.IOException, XmlPullParserException- Specified by:
writeContentin interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeEndTag
public void writeEndTag(XmlEndTag etag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeEndTagin interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeStartTag
public void writeStartTag(XmlStartTag stag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeStartTagin interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeStartTagStart
public void writeStartTagStart(XmlStartTag stag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeStartTagStartin interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeStartTagAsEndTag
public void writeStartTagAsEndTag(XmlStartTag stag) throws java.io.IOException, XmlPullParserException
- Specified by:
writeStartTagAsEndTagin interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeNode
public void writeNode(XmlNode node) throws java.io.IOException, XmlPullParserException
- Specified by:
writeNodein interfaceXmlRecorder- Throws:
java.io.IOExceptionXmlPullParserException
-
writeEscaped
protected void writeEscaped(java.lang.String s, boolean escapeApostAttrib) throws java.io.IOException, XmlPullParserException- Throws:
java.io.IOExceptionXmlPullParserException
-
-