be.lassi.xml
Class XmlWriter
java.lang.Object
be.lassi.xml.XmlWriter
public class XmlWriter
- extends java.lang.Object
Writes xml format.
Constructor Summary |
XmlWriter(java.io.Writer writer)
Constructs a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlWriter
public XmlWriter(java.io.Writer writer)
- Constructs a new instance.
- Parameters:
writer
- the writer on which to write the XML output
addAttribute
public void addAttribute(java.lang.String name,
boolean value)
addAttribute
public void addAttribute(java.lang.String name,
int value)
addAttribute
public void addAttribute(java.lang.String name,
java.lang.String value)
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
closeElement
public void closeElement()
throws java.io.IOException
- Throws:
java.io.IOException
openElement
public void openElement(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException