This project has retired. For details please refer to its
Attic page .
XMLWriter
org.apache.maven.archiva.xml
Class XMLWriter
java.lang.Object
org.apache.maven.archiva.xml.XMLWriter
public class XMLWriter extends java.lang.Object
XMLWriter - Making writing XML files easier.
Method Summary
static void
write (org.dom4j.Document doc,
java.io.Writer writer)
Write the Document to the provided Writer, leaving the Writer open.
static void
write (org.dom4j.Document doc,
java.io.Writer writer,
boolean close)
Write the Document to the provided Writer, with an option to close the writer upon completion.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
XMLWriter
public XMLWriter ()
write
public static void write (org.dom4j.Document doc,
java.io.Writer writer)
throws XMLException
Write the Document to the provided Writer, leaving the Writer open.
Parameters: doc
- the document to write.writer
- the writer to write to.
Throws:
XMLException
- if there was a problem writing the xml to the writer.
write
public static void write (org.dom4j.Document doc,
java.io.Writer writer,
boolean close)
throws XMLException
Write the Document to the provided Writer, with an option to close the writer upon completion.
Parameters: doc
- the document to write.writer
- the writer to write to.close
- true to close the writer on completion.
Throws:
XMLException
- if there was a problem writing the xml to the writer.