net.n3.nanoxml
public class XMLWriter extends Object
Version: $Name: RELEASE_2_2_1 $, $Revision: 1.4 $
See Also: IXMLElement java.io.Writer
| Constructor Summary | |
|---|---|
| XMLWriter(Writer writer)
Creates a new XML writer.
| |
| XMLWriter(OutputStream stream)
Creates a new XML writer.
| |
| Method Summary | |
|---|---|
| protected void | finalize()
Cleans up the object when it's destroyed. |
| void | write(IXMLElement xml)
Writes an XML element.
|
| void | write(IXMLElement xml, boolean prettyPrint)
Writes an XML element.
|
| void | write(IXMLElement xml, boolean prettyPrint, int indent)
Writes an XML element.
|
| void | write(IXMLElement xml, boolean prettyPrint, int indent, boolean collapseEmptyElements)
Writes an XML element.
|
Parameters: writer where to write the output to.
Parameters: stream where to write the output to.
Parameters: xml the non-null XML element to write.
Parameters: xml the non-null XML element to write. prettyPrint if spaces need to be inserted to make the output more readable
Parameters: xml the non-null XML element to write. prettyPrint if spaces need to be inserted to make the output more readable indent how many spaces to indent the element.
Parameters: xml the non-null XML element to write. prettyPrint if spaces need to be inserted to make the output more readable indent how many spaces to indent the element.