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