|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.clirr.core.DiffListenerAdapter
net.sf.clirr.core.XmlDiffListener
public final class XmlDiffListener
A DiffListener that reports any detected difference to an XML file. That file can be used by subsequent processing steps to create nice looking reports in HTML, PDF, etc.
| Constructor Summary | |
|---|---|
XmlDiffListener(java.lang.String outFile)
|
|
| Method Summary | |
|---|---|
protected java.io.PrintStream |
getOutputStream()
Returns the output stream so subclasses can write data. |
void |
reportDiff(ApiDifference difference)
Does nothing |
void |
start()
Writes an XML header and toplevel tag to the xml stream. |
void |
stop()
Writes a footer and closes the output stream if necessary. |
protected void |
writeFooter()
Closes the toplevel tag that was opened in start. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlDiffListener(java.lang.String outFile)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void reportDiff(ApiDifference difference)
DiffListenerAdapter
reportDiff in interface DiffListenerreportDiff in class DiffListenerAdapterdifference - the difference that has been detected.DiffListener.reportDiff(net.sf.clirr.core.ApiDifference)public void start()
start in interface DiffListenerstart in class DiffListenerAdapterDiffListener.start()protected void writeFooter()
DiffListener.stop()protected final java.io.PrintStream getOutputStream()
public final void stop()
stop in interface DiffListenerstop in class DiffListenerAdapterwriteFooter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||