to.etc.domui.dom
Class PrettyXmlOutputWriter

java.lang.Object
  extended by to.etc.domui.dom.XmlOutputWriterBase
      extended by to.etc.domui.dom.PrettyXmlOutputWriter
All Implemented Interfaces:
IBrowserOutput

public class PrettyXmlOutputWriter
extends XmlOutputWriterBase
implements IBrowserOutput

Pretty-printing output renderer. Slower than the non-pretty variant, used for debugging.

Author:
Frits Jalvingh Created on Aug 17, 2007

Field Summary
 
Fields inherited from class to.etc.domui.dom.XmlOutputWriterBase
m_intag
 
Constructor Summary
PrettyXmlOutputWriter(java.io.Writer out)
           
 
Method Summary
 void dec()
           
 void inc()
           
 boolean isIndentEnabled()
           
 void nl()
           
protected  void println()
           
 void setIndentEnabled(boolean ind)
           
 
Methods inherited from class to.etc.domui.dom.XmlOutputWriterBase
attr, attr, attr, attr, closetag, endAndCloseXmltag, endtag, getWriter, rawAttr, tag, text, writeRaw, writeRaw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface to.etc.domui.dom.IBrowserOutput
attr, attr, attr, attr, closetag, endAndCloseXmltag, endtag, rawAttr, tag, text, writeRaw
 

Constructor Detail

PrettyXmlOutputWriter

public PrettyXmlOutputWriter(java.io.Writer out)
Method Detail

nl

public void nl()
        throws java.io.IOException
Specified by:
nl in interface IBrowserOutput
Overrides:
nl in class XmlOutputWriterBase
Throws:
java.io.IOException

inc

public void inc()
Specified by:
inc in interface IBrowserOutput
Overrides:
inc in class XmlOutputWriterBase

dec

public void dec()
Specified by:
dec in interface IBrowserOutput
Overrides:
dec in class XmlOutputWriterBase

setIndentEnabled

public void setIndentEnabled(boolean ind)
Specified by:
setIndentEnabled in interface IBrowserOutput

isIndentEnabled

public boolean isIndentEnabled()
Specified by:
isIndentEnabled in interface IBrowserOutput
Overrides:
isIndentEnabled in class XmlOutputWriterBase

println

protected void println()
                throws java.io.IOException
Overrides:
println in class XmlOutputWriterBase
Throws:
java.io.IOException