com.googlecode.jslint4java.maven
Class ReportWriterImpl

java.lang.Object
  extended by com.googlecode.jslint4java.maven.ReportWriterImpl
All Implemented Interfaces:
ReportWriter

public class ReportWriterImpl
extends Object
implements ReportWriter

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
ReportWriterImpl(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

ReportWriterImpl

public ReportWriterImpl(File reportFile,
                        JSLintResultFormatter formatter)
Method Detail

close

public void close()
Description copied from interface: ReportWriter
End the report.

Specified by:
close in interface ReportWriter

getReportFile

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


open

public void open()
Description copied from interface: ReportWriter
Begin the report. Call immediately after construction.

Specified by:
open in interface ReportWriter

report

public void report(JSLintResult result)
Description copied from interface: ReportWriter
Report the result of a run.

Specified by:
report in interface ReportWriter


Copyright © 2007-2012. All Rights Reserved.