public class PlainResultFormatter extends Object implements ResultFormatter
If a file is specified, all output will go there. If not, then all output will go to stdout.
| Modifier and Type | Field and Description |
|---|---|
protected OutputStream |
out |
protected PrintWriter |
w |
| Constructor and Description |
|---|
PlainResultFormatter() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Called at the start of
JSLintTask execution. |
void |
end()
Called at the end of
JSLintTask execution. |
void |
output(JSLintResult result)
Emit all issues to the console.
|
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.
|
protected OutputStream out
protected PrintWriter w
public void begin()
ResultFormatterJSLintTask execution.begin in interface ResultFormatterpublic void end()
ResultFormatterJSLintTask execution.end in interface ResultFormatterpublic void output(JSLintResult result)
output in interface ResultFormatterresult - The details if this JSLint run.public void setFile(File file)
ResultFormattersetFile in interface ResultFormatterfile - The file to write to.public void setStdout(OutputStream defaultOutputStream)
ResultFormattersetStdout in interface ResultFormatterCopyright © 2007-2013. All Rights Reserved.