Report Virtualization is a mechanism JasperReport introduced in order to make possible huge report generation Through different strategies (GZip compression in memory, using a file swap, etc.) they save a lot of memory.
Virtualizers a used exclusively by JasperReports at report fill time, we'll just briefly show here how to use them.
Actually there are 3 implementations:
// creating the virtualizer JRFileVirtualizer virtualizer = new JRFileVirtualizer(5, "tempFolderPath"); // Pass virtualizer object throw parameter map parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer); //Use any call of DynamicJasperHelper where the parameters map is passed JasperPrint jp = DynamicJasperHelper.generateJasperPrint(dynamicReport, new ClassicLayoutManager(), conn, parametersMap);