private static void doProcess( ReportProgressListener listener, FlowReportProcessor reportProcessor ) throws ReportProcessingException { try { reportProcessor.processReport(); } finally { if ( listener != null ) { reportProcessor.removeReportProgressListener( listener ); } reportProcessor.close(); } }
public static void createFlowXML( final MasterReport report, final OutputStream outputStream ) throws ReportProcessingException { if ( report == null ) { throw new NullPointerException(); } if ( outputStream == null ) { throw new NullPointerException(); } final XmlTableOutputProcessor outputProcessor = new XmlTableOutputProcessor( outputStream, new XmlTableOutputProcessorMetaData( XmlTableOutputProcessorMetaData.PAGINATION_MANUAL ) ); final FlowReportProcessor sp = new FlowReportProcessor( report, outputProcessor ); sp.processReport(); sp.close(); } }
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 } } } }
sp.close(); } catch ( ContentIOException e ) { throw new IOException( "Failed to get repository-root." );
sp.close(); } catch ( ContentIOException e ) { throw new IOException( "Failed to get or create the repository-root." );
sp.close(); zipRepository.close(); } catch ( IOException ioe ) {
streamReportProcessor.close();
streamReportProcessor.close();
streamReportProcessor.close();
streamReportProcessor.close();
streamReportProcessor.close();