net.sf.clirr.core
Class PlainDiffListener

java.lang.Object
  extended by net.sf.clirr.core.DiffListenerAdapter
      extended by net.sf.clirr.core.PlainDiffListener
All Implemented Interfaces:
DiffListener

public final class PlainDiffListener
extends DiffListenerAdapter


Constructor Summary
PlainDiffListener(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 stop()
          Writes a footer and closes the output stream if necessary.
protected  void writeFooter()
          A hook to write footer info to the output stream.
 
Methods inherited from class net.sf.clirr.core.DiffListenerAdapter
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainDiffListener

public PlainDiffListener(java.lang.String outFile)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

reportDiff

public void reportDiff(ApiDifference difference)
Description copied from class: DiffListenerAdapter
Does nothing

Specified by:
reportDiff in interface DiffListener
Overrides:
reportDiff in class DiffListenerAdapter
Parameters:
difference - the difference that has been detected.
See Also:
DiffListener.reportDiff(net.sf.clirr.core.ApiDifference)

getOutputStream

protected final java.io.PrintStream getOutputStream()
Returns the output stream so subclasses can write data.

Returns:
the output stream

stop

public final void stop()
Writes a footer and closes the output stream if necessary.

Specified by:
stop in interface DiffListener
Overrides:
stop in class DiffListenerAdapter
See Also:
writeFooter()

writeFooter

protected void writeFooter()
A hook to write footer info to the output stream. This implementation does nothing, subclasses can override this method if necessary.

See Also:
stop()


Copyright © 2003-2008 Lars K??hne. All Rights Reserved.