public class ReportWriterFactory extends Object
Constructor and Description |
---|
ReportWriterFactory() |
ReportWriterFactory(int pagesThreshold) |
Modifier and Type | Method and Description |
---|---|
static ReportWriterFactory |
build(int pagesThreshold) |
static ReportWriterFactory |
getInstance() |
ReportWriter |
getReportWriter(net.sf.jasperreports.engine.JasperPrint _jasperPrint,
String _format,
Map _parameters)
Returns a ReportWriter that which will use memory or a file depending on the parameter PAGES_THRESHOLD
|
public ReportWriterFactory()
public ReportWriterFactory(int pagesThreshold)
public ReportWriter getReportWriter(net.sf.jasperreports.engine.JasperPrint _jasperPrint, String _format, Map _parameters)
_jasperPrint
- _format
- _parameters
- public static ReportWriterFactory getInstance()
public static ReportWriterFactory build(int pagesThreshold)
pagesThreshold
- an integer that represent limit of pages to use in-memory report generation, if the report
surpases this limit, it will internally use a file. if pagesThreshold = 0, it will always use
a file.Copyright © 2006-2014 FDV Solutions. All Rights Reserved.