|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.clirr.event.DiffListenerAdapter
net.sf.clirr.event.FileDiffListener
net.sf.clirr.event.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
Method Detail |
public void reportDiff(ApiDifference difference)
DiffListenerAdapter
reportDiff
in interface DiffListener
reportDiff
in class DiffListenerAdapter
DiffListener.reportDiff(ApiDifference)
public void start()
start
in interface DiffListener
start
in class DiffListenerAdapter
DiffListener.start()
protected void writeFooter()
DiffListener.stop()
protected final java.io.PrintStream getOutputStream()
public final void stop()
stop
in interface DiffListener
stop
in class DiffListenerAdapter
FileDiffListener.writeFooter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |