com.tngtech.jgiven.report.text
Class PlainTextReporter

java.lang.Object
  extended by com.tngtech.jgiven.report.model.ReportModelVisitor
      extended by com.tngtech.jgiven.report.text.PlainTextWriter
          extended by com.tngtech.jgiven.report.text.PlainTextReporter

public class PlainTextReporter
extends PlainTextWriter

Generates a plain text report to a PrintStream.


Field Summary
 
Fields inherited from class com.tngtech.jgiven.report.text.PlainTextWriter
withColor, writer
 
Constructor Summary
PlainTextReporter()
           
PlainTextReporter(boolean withColor)
           
PlainTextReporter(java.io.PrintWriter printWriter, boolean withColor)
           
 
Method Summary
 void close()
          Closes the underlying PrintWriter
static java.lang.String toString(ReportModel model)
           
 void visit(ReportModel multiScenarioModel)
           
 void visit(ScenarioModel scenarioModel)
           
 PlainTextReporter write(ReportModel model)
           
 void write(ScenarioModel scenarioModel)
           
 
Methods inherited from class com.tngtech.jgiven.report.model.ReportModelVisitor
visit, visit, visitEnd, visitEnd, visitEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextReporter

public PlainTextReporter()

PlainTextReporter

public PlainTextReporter(boolean withColor)

PlainTextReporter

public PlainTextReporter(java.io.PrintWriter printWriter,
                         boolean withColor)
Method Detail

toString

public static java.lang.String toString(ReportModel model)
                                 throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

write

public PlainTextReporter write(ReportModel model)

close

public void close()
Closes the underlying PrintWriter


write

public void write(ScenarioModel scenarioModel)

visit

public void visit(ReportModel multiScenarioModel)
Overrides:
visit in class ReportModelVisitor

visit

public void visit(ScenarioModel scenarioModel)
Overrides:
visit in class ReportModelVisitor