|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.testdoc.core.export.XmlExporter
public class XmlExporter
Exports the gathered test documentation to XML.
Constructor Summary | |
---|---|
XmlExporter() Convenience constructor with pretty print turned on. |
|
XmlExporter(boolean prettyPrint) Default constructor. |
Method Summary | |
---|---|
void |
export(UnitTestDoc testDoc, OutputStream output) Exports the given test documentation to the stream. |
String |
getFileExtension() Returns the extension for the files being exported by this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlExporter() throws ParserConfigurationException
ParserConfigurationException
- if the XML infrastructure cannot be established.
public XmlExporter(boolean prettyPrint) throws ParserConfigurationException
prettyPrint
- the flag determines whether or not the XML file should be pretty-printed (
true
) or not (
false
).
ParserConfigurationException
- if the XML infrastructure cannot be established.
Method Detail |
---|
public String getFileExtension()
getFileExtension
in interface
UnitTestDocExporter
xml
.
UnitTestDocExporter.getFileExtension()
public void export(UnitTestDoc testDoc, OutputStream output) throws IOException, NullPointerException
export
in interface
UnitTestDocExporter
testDoc
- the documentation to export.
output
- the stream to write to.
IOException
- on any problem writing to the stream.
NullPointerException
- if any of the arguments is
null
.
UnitTestDocExporter.export(de.smartics.testdoc.core.doc.UnitTestDoc, java.io.OutputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |