com.googlecode.jslint4java.ant
Interface ResultFormatter

All Known Implementing Classes:
CheckstyleXmlResultFormatter, JUnitXmlResultFormatter, PlainResultFormatter, ReportResultFormatter, XmlResultFormatter

public interface ResultFormatter

Output all issues found somewhere. The calling sequence is:

Author:
dom

Method Summary
 void begin()
          Called at the start of JSLintTask execution.
 void end()
          Called at the end of JSLintTask execution.
 void output(JSLintResult result)
          Called for each file that is checked by JSLintTask.
 void setFile(File file)
          Called during initialization.
 void setStdout(OutputStream defaultOutputStream)
          If you want to write to stdout, you can't just use System.out, because we're in the middle of ant task.
 

Method Detail

begin

void begin()
Called at the start of JSLintTask execution.


end

void end()
Called at the end of JSLintTask execution.


output

void output(JSLintResult result)
Called for each file that is checked by JSLintTask.

Parameters:
result - The details if this JSLint run.

setFile

void setFile(File file)
Called during initialization. The file to where output should be written.

Parameters:
file - The file to write to.

setStdout

void setStdout(OutputStream defaultOutputStream)
If you want to write to stdout, you can't just use System.out, because we're in the middle of ant task. Ensure that a suitable form is passed down instead.



Copyright © 2007-2012. All Rights Reserved.