1 23 package com.sun.enterprise.diagnostics.report.html; 24 25 26 import com.sun.enterprise.diagnostics.Data; 27 import com.sun.enterprise.diagnostics.ReportTarget; 28 import com.sun.enterprise.diagnostics.ReportConfig; 29 import com.sun.enterprise.diagnostics.Constants; 30 import java.io.File ; 31 35 public class HTMLReportWriter { 36 37 protected ReportConfig config; 38 protected HTMLReportTemplate template; 39 40 41 public HTMLReportWriter(ReportConfig config) { 42 this.config = config; 43 } 44 45 protected void setTemplate(Data dataObj) { 46 template = new HTMLReportTemplate(config, dataObj); 47 } 48 49 public void writeReportSummary(Data dataObj) { 50 setTemplate(dataObj); 51 template.write(); 52 } 53 54 } 55 | Popular Tags |