Class CheckstyleAntTask.Formatter

  • Enclosing class:
    CheckstyleAntTask

    public static class CheckstyleAntTask.Formatter
    extends java.lang.Object
    Details about a formatter to be used.
    • Constructor Summary

      Constructors 
      Constructor Description
      Formatter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AuditListener createListener​(org.apache.tools.ant.Task task)
      Creates a listener for the formatter.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Formatter

        public Formatter()
    • Method Detail

      • setTofile

        public void setTofile​(java.io.File destination)
        Set the file to output to.
        Parameters:
        destination - destination the file to output to
      • setUseFile

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

        public AuditListener createListener​(org.apache.tools.ant.Task task)
                                     throws java.io.IOException
        Creates a listener for the formatter.
        Parameters:
        task - the task running
        Returns:
        a listener
        Throws:
        java.io.IOException - if an error occurs