jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.bstek.bdf2.export.extension;
 
import java.io.OutputStream;
 
import com.bstek.bdf2.export.model.ReportGrid;
 
/**
 * 自定义生成报表接口
 * 
 * @author matt.yao@bstek.com
 * @since 2.7
 */
public interface ReportBuilder {
 
    /**
     * 生成报表
     * 
     * @param out
     *            输出流
     * @param report
     *            grid数据模型
     * @throws Exception
     */
    public void execute(OutputStream out, ReportGrid reportGrid) throws Exception;
 
    /**
     * 是否支持当前的文件类型
     * 
     * @param extension
     *            文件类型
     * @return
     */
    public boolean support(String extension);
 
}