[JasperReport] JasperReport 報表設計套用 command 模式
預設報表須輸出 pdf,ods 兩種格式
需要
CommandProcessor interface
Command interface
設定 Processor 可以執行的 command,假設有三種
InputModel 為從前端 controller 所傳遞過來的屬性or資料
public interface CommandProcessor {
String TO_FILE = "toFile";
String TO_STREAM = "toStream";
String TO_BYTE_ARRAY = "toByteArray";
genReportToFile(InputModel inputModel)
genReportToStream(InputModel inputModel)
genReportToByteArray(InputModel inputModel)
}