01: package net.xoetrope.xml.nanoxml;
02:
03: import java.io.FileOutputStream;
04: import java.io.IOException;
05: import java.io.OutputStream;
06: import java.io.Writer;
07:
08: import net.n3.nanoxml.XMLElement;
09: import net.n3.nanoxml.XMLWriter;
10: import net.xoetrope.xml.XmlElement;
11: import net.xoetrope.xml.XmlWriter;
12:
13: /**
14: * <p> Copyright (c) Xoetrope Ltd., 2002-2003</p>
15: * <p> $Revision: 1.2 $</p>
16: * <p> License: see License.txt</p>
17: */
18: public class NanoXmlWriter extends XMLWriter implements XmlWriter {
19: public NanoXmlWriter(OutputStream stream) {
20: super (stream);
21: }
22:
23: public NanoXmlWriter(Writer writer) {
24: super (writer);
25: }
26:
27: /**
28: * Writes an XML element.
29: *
30: * @param xml the non-null XML element to write.
31: * @param prettyPrint if spaces need to be inserted to make the output more
32: * readable
33: * @param indent how many spaces to indent the element.
34: */
35: public void write(XmlElement xml, boolean prettyPrint, int indent)
36: throws IOException {
37: super .write((XMLElement) xml.getImplementation(), prettyPrint,
38: indent);
39: }
40:
41: public void setOutputStream(FileOutputStream fos) {
42:
43: }
44: }
|