org.gjt.xpp.impl.format
Class Recorder

java.lang.Object
  extended byorg.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
protected  java.lang.String[] declaredNs
           
protected  java.lang.String[] declaredPrefixes
           
protected  java.io.Writer out
           
 
Constructor Summary
Recorder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

declaredPrefixes

protected java.lang.String[] declaredPrefixes

declaredNs

protected java.lang.String[] declaredNs

out

protected java.io.Writer out
Constructor Detail

Recorder

public Recorder()
Method Detail

getOutput

public java.io.Writer getOutput()
Specified by:
getOutput in interface XmlRecorder

setOutput

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

write

public void write(java.lang.Object o)
           throws java.io.IOException,
                  XmlPullParserException
Specified by:
write in interface XmlRecorder
Throws:
java.io.IOException
XmlPullParserException

writeXml

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

writeContent

public void writeContent(java.lang.String s)
                  throws java.io.IOException,
                         XmlPullParserException
Specified by:
writeContent in interface XmlRecorder
Throws:
java.io.IOException
XmlPullParserException

writeEndTag

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

writeStartTag

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

writeStartTagStart

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

writeStartTagAsEndTag

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

writeNode

public void writeNode(XmlNode node)
               throws java.io.IOException,
                      XmlPullParserException
Specified by:
writeNode in interface XmlRecorder
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


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