View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.renderers;
5   
6   import java.io.IOException;
7   import java.io.Writer;
8   
9   import net.sourceforge.pmd.DataSource;
10  import net.sourceforge.pmd.Report;
11  
12  public interface Renderer {
13  
14      void showSuppressedViolations(boolean show);
15  
16      /**
17       * 
18       * @deprecated This method consumes too much memory.
19       * Use the render method with the Writer argument instead.
20       * 
21       */
22      String render(Report report);
23  
24      /**
25       * 
26       * @deprecated This method consumes too much memory.
27       * Use the start, renderFileReport and end methods instead.
28       * 
29       */
30      void render(Writer writer, Report report) throws IOException;
31  
32      void setWriter(Writer writer);
33  
34      Writer getWriter();
35  
36      void start() throws IOException;
37  
38      void startFileAnalysis(DataSource dataSource);
39  
40      void renderFileReport(Report report) throws IOException;
41  
42      void end() throws IOException;
43  
44  }