protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { ReportStructureValidator validator = new ReportStructureValidator(); if ( validator.isValidForFastProcessing( report ) == false ) { final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); target.setUseXlsxFormat( true ); return new FlowReportProcessor( report, target ); } else { return new FastExcelExportProcessor( report, fout, true ); } } };
protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { ReportStructureValidator validator = new ReportStructureValidator(); if ( validator.isValidForFastProcessing( report ) == false ) { final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); target.setUseXlsxFormat( false ); return new FlowReportProcessor( report, target ); } else { return new FastExcelExportProcessor( report, fout, false ); } } };
public static void createXLSX( final MasterReport report, final OutputStream outputStream, final ReportProgressListener listener ) throws ReportProcessingException { if ( report == null ) { throw new NullPointerException(); } if ( outputStream == null ) { throw new NullPointerException(); } final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), outputStream, report.getResourceManager() ); target.setUseXlsxFormat( true ); final FlowReportProcessor reportProcessor = new FlowReportProcessor( report, target ); if ( listener != null ) { reportProcessor.addReportProgressListener( listener ); } doProcess( listener, reportProcessor ); }
public static void createXLS( final MasterReport report, final OutputStream outputStream, final ReportProgressListener listener ) throws ReportProcessingException { if ( report == null ) { throw new NullPointerException(); } if ( outputStream == null ) { throw new NullPointerException(); } final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), outputStream, report.getResourceManager() ); target.setUseXlsxFormat( false ); final FlowReportProcessor reportProcessor = new FlowReportProcessor( report, target ); if ( listener != null ) { reportProcessor.addReportProgressListener( listener ); } doProcess( listener, reportProcessor ); }
private static void processFlowXlsx( final MasterReport report, OutputStream fout ) throws ReportProcessingException, IOException { try { final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); target.setUseXlsxFormat( true ); final FlowReportProcessor reportProcessor = new FlowReportProcessor( report, target ); reportProcessor.processReport(); reportProcessor.close(); fout.close(); fout = null; } finally { if ( fout != null ) { try { fout.close(); } catch ( Exception e ) { // ignore } } } } }
private static void processFlowXls( final MasterReport report, OutputStream fout ) throws ReportProcessingException, IOException { try { final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); target.setUseXlsxFormat( false ); final FlowReportProcessor reportProcessor = new FlowReportProcessor( report, target ); reportProcessor.processReport(); reportProcessor.close(); fout.close(); fout = null; } finally { if ( fout != null ) { try { fout.close(); } catch ( Exception e ) { // ignore } } } }
final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), out, report.getResourceManager() ); target.setUseXlsxFormat( false ); reportProcessor = new FlowReportProcessor( report, target ); } else {
final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), out, report.getResourceManager() ); target.setUseXlsxFormat( true ); reportProcessor = new FlowReportProcessor( report, target ); } else {
final FlowExcelOutputProcessor outputProcessor = new FlowExcelOutputProcessor( configuration, outputStream, masterReport.getResourceManager() ); outputProcessor.setUseXlsxFormat( true ); final FlowReportProcessor streamReportProcessor = new FlowReportProcessor( masterReport, outputProcessor ); try {
final FlowExcelOutputProcessor outputProcessor = new FlowExcelOutputProcessor( configuration, outputStream, masterReport.getResourceManager() ); outputProcessor.setUseXlsxFormat( false ); final FlowReportProcessor streamReportProcessor = new FlowReportProcessor( masterReport, outputProcessor ); try {