de.trantor.xml
Class XmlWriter

java.lang.Object
  |
  +--de.trantor.util.StructureWriter
        |
        +--de.trantor.xml.XmlWriter

public class XmlWriter
extends StructureWriter

A class for writing formatted xml output.


Fields inherited from class de.trantor.util.StructureWriter
writer
 
Constructor Summary
XmlWriter(java.io.Writer writer)
          creates a new XmlWriter depending on the given Writer
 
Method Summary
 void writeCooked(java.lang.String s)
          writes a string to the stream.
 
Methods inherited from class de.trantor.util.StructureWriter
close, decIndentLevel, flush, getWriter, incIndentLevel, printIndent, writeRaw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlWriter

public XmlWriter(java.io.Writer writer)
creates a new XmlWriter depending on the given Writer
Method Detail

writeCooked

public void writeCooked(java.lang.String s)
                 throws java.io.IOException
writes a string to the stream. Reserved characters like "<" are escaped (&lt;).
Overrides:
writeCooked in class StructureWriter