public static class CheckstyleAntTask.Formatter extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
toFile
The file to output to.
|
private CheckstyleAntTask.FormatterType |
type
The formatter type.
|
private boolean |
useFile
Whether or not the write to the named file.
|
| Constructor and Description |
|---|
Formatter() |
| Modifier and Type | Method and Description |
|---|---|
private AuditListener |
createDefaultLogger(org.apache.tools.ant.Task task)
Creates default logger.
|
AuditListener |
createListener(org.apache.tools.ant.Task task)
Creates a listener for the formatter.
|
private AuditListener |
createXmlLogger(org.apache.tools.ant.Task task)
Creates XML logger.
|
void |
setTofile(java.io.File destination)
Set the file to output to.
|
void |
setType(CheckstyleAntTask.FormatterType type)
Set the type of the formatter.
|
void |
setUseFile(boolean use)
Sets whether or not we write to a file if it is provided.
|
private CheckstyleAntTask.FormatterType type
private java.io.File toFile
private boolean useFile
public Formatter()
public void setType(CheckstyleAntTask.FormatterType type)
type - the typepublic void setTofile(java.io.File destination)
destination - destination the file to output topublic void setUseFile(boolean use)
use - whether not not to use provided file.public AuditListener createListener(org.apache.tools.ant.Task task) throws java.io.IOException
task - the task runningjava.io.IOException - if an error occursprivate AuditListener createDefaultLogger(org.apache.tools.ant.Task task) throws java.io.IOException
task - the task to possibly log tojava.io.IOException - if an error occursprivate AuditListener createXmlLogger(org.apache.tools.ant.Task task) throws java.io.IOException
task - the task to possibly log tojava.io.IOException - if an error occursCopyright © 2001-2022. All Rights Reserved.