| java.lang.Object net.n3.nanoxml.XMLWriter
Method Summary | |
protected void | finalize() Cleans up the object when it's destroyed. | public void | write(XMLElement xml) Writes an XML element. | public void | write(XMLElement xml, boolean prettyPrint) Writes an XML element. | public void | write(XMLElement xml, boolean prettyPrint, int indent) Writes an XML element. |
XMLWriter | public XMLWriter(Writer writer)(Code) | | Creates a new XML writer.
Parameters: writer - where to write the output to. |
XMLWriter | public XMLWriter(OutputStream stream)(Code) | | Creates a new XML writer.
Parameters: stream - where to write the output to. |
finalize | protected void finalize() throws Throwable(Code) | | Cleans up the object when it's destroyed.
|
write | public void write(XMLElement xml) throws IOException(Code) | | Writes an XML element.
Parameters: xml - the non-null XML element to write. |
write | public void write(XMLElement xml, boolean prettyPrint) throws IOException(Code) | | Writes an XML element.
Parameters: xml - the non-null XML element to write. Parameters: prettyPrint - if spaces need to be inserted to make the output more readable |
write | public void write(XMLElement xml, boolean prettyPrint, int indent) throws IOException(Code) | | Writes an XML element.
Parameters: xml - the non-null XML element to write. Parameters: prettyPrint - if spaces need to be inserted to make the output more readable Parameters: indent - how many spaces to indent the element. |
|
|