|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.n3.nanoxml.XMLWriter
net.xoetrope.xml.nanoxml.NanoXmlWriter
public class NanoXmlWriter
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 2.2 $
License: see License.txt
| Constructor Summary | |
|---|---|
NanoXmlWriter(java.io.OutputStream stream)
ctor which takes the OutputStream as a parameter. |
|
NanoXmlWriter(java.io.Writer writer)
ctor which takes the Writer as a parameter. |
|
| Method Summary | |
|---|---|
void |
setOutputStream(java.io.FileOutputStream fos)
Set the OutputStream to be used by the write function. |
void |
write(XmlElement xml,
boolean prettyPrint,
int indent)
Write the contents of an XmlElement out to the outputstream specified by setOutputStream |
| Methods inherited from class net.n3.nanoxml.XMLWriter |
|---|
finalize, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NanoXmlWriter(java.io.OutputStream stream)
stream - The OutputStream to which the contents will be writtenpublic NanoXmlWriter(java.io.Writer writer)
writer - The Writer to which the contents will be written| Method Detail |
|---|
public void write(XmlElement xml,
boolean prettyPrint,
int indent)
throws java.io.IOException
write in interface XmlWriterxml - The root XmlElement to be outputprettyPrint - If true the XML will be output in a more readable formatindent - If true the XML will be indented
java.io.IOException - Throw an IOException if anything goes wrongpublic void setOutputStream(java.io.FileOutputStream fos)
setOutputStream in interface XmlWriterfos - The FileOutputStream to which the XML will be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||