net.sf.clirr.event
Class PlainDiffListener

java.lang.Object
  extended bynet.sf.clirr.event.DiffListenerAdapter
      extended bynet.sf.clirr.event.FileDiffListener
          extended bynet.sf.clirr.event.PlainDiffListener
All Implemented Interfaces:
DiffListener

public final class PlainDiffListener
extends net.sf.clirr.event.FileDiffListener


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.event.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
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
See Also:
DiffListener.reportDiff(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:
FileDiffListener.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:
FileDiffListener.stop()


Copyright © 2003-2004 Lars Kühne. All Rights Reserved.