com.googlecode.jslint4java.maven
Class ReportWriter

java.lang.Object
  extended by com.googlecode.jslint4java.maven.ReportWriter

public class ReportWriter
extends Object

Write a report formatted by a JSLintResultFormatter to a file. You should call the methods in this order:

  1. open()
  2. report(JSLintResult)
  3. close()

If you don't call close(), you won't see any output.


Constructor Summary
ReportWriter(File reportFile, JSLintResultFormatter formatter)
           
 
Method Summary
 void close()
          End the report.
 File getReportFile()
          The file the report is written to.
 void open()
          Begin the report.
 void report(JSLintResult result)
          Report the result of a run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportWriter

public ReportWriter(File reportFile,
                    JSLintResultFormatter formatter)
Method Detail

close

public void close()
End the report.


getReportFile

public File getReportFile()
The file the report is written to.


open

public void open()
Begin the report. Call immediately after construction.


report

public void report(JSLintResult result)
Report the result of a run.



Copyright © 2007-2011. All Rights Reserved.