com.hammurapi.review
Class PrintStreamReporter

java.lang.Object
  extended by com.hammurapi.review.PrintStreamReporter
All Implemented Interfaces:
Reporter<Object>

public class PrintStreamReporter
extends Object
implements Reporter<Object>


Constructor Summary
PrintStreamReporter()
          Constructs print stream reporter from System.out
PrintStreamReporter(PrintStream out, boolean closeStream)
           
 
Method Summary
 void close()
          Closes reporter.
 ObservationSink createObservationSink(Module module)
          Creates observation sink for a module.
 void onException(Exception e)
          This method is invoked when exception is thrown before model and observation sinks are constructed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamReporter

public PrintStreamReporter(PrintStream out,
                           boolean closeStream)

PrintStreamReporter

public PrintStreamReporter()
Constructs print stream reporter from System.out

Method Detail

close

public void close()
           throws ReviewException
Description copied from interface: Reporter
Closes reporter.

Specified by:
close in interface Reporter<Object>
Throws:
ReviewException

createObservationSink

public ObservationSink createObservationSink(Module module)
                                      throws ReviewException
Description copied from interface: Reporter
Creates observation sink for a module.

Specified by:
createObservationSink in interface Reporter<Object>
Returns:
Throws:
ReviewException

onException

public void onException(Exception e)
Description copied from interface: Reporter
This method is invoked when exception is thrown before model and observation sinks are constructed.

Specified by:
onException in interface Reporter<Object>