com.puppycrawl.tools.checkstyle

Class CheckStyleTask.Formatter

Enclosing Class:
CheckStyleTask

public static class CheckStyleTask.Formatter
extends Object

Details about a formatter to be used.
Author:
Oliver Burn

Method Summary

AuditListener
createListener(Task aTask)
Creates a listener for the formatter.
void
setTofile(File aTo)
Set the file to output to.
void
setType(CheckStyleTask.FormatterType aType)
Set the type of the formatter.
void
setUseFile(boolean aUse)
Sets whether or not we write to a file if it is provided.

Method Details

createListener

public AuditListener createListener(Task aTask)
            throws IOException
Creates a listener for the formatter.
Parameters:
aTask - the task running
Returns:
a listener

setTofile

public void setTofile(File aTo)
Set the file to output to.
Parameters:
aTo - the file to output to

setType

public void setType(CheckStyleTask.FormatterType aType)
Set the type of the formatter.
Parameters:
aType - the type

setUseFile

public void setUseFile(boolean aUse)
Sets whether or not we write to a file if it is provided.
Parameters:
aUse - whether not not to use provided file.