KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > renderers > YAHTMLRenderer


1 package net.sourceforge.pmd.renderers;
2
3 import java.io.IOException JavaDoc;
4 import java.io.Writer JavaDoc;
5
6 import net.sourceforge.pmd.Report;
7 import net.sourceforge.pmd.dfa.report.ReportHTMLPrintVisitor;
8 import net.sourceforge.pmd.dfa.report.ReportTree;
9
10 public class YAHTMLRenderer extends AbstractRenderer {
11
12     public void render(Writer JavaDoc writer, Report report) throws IOException JavaDoc {
13         ReportTree tree = report.getViolationTree();
14         tree.getRootNode().accept(new ReportHTMLPrintVisitor());
15         writer.write("<h3 align=\"center\">The HTML files are created above the project directory.</h3>");
16     }
17
18 }
19
Popular Tags