protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor(); final HtmlPrinter printer = new AllItemsHtmlPrinter( report.getResourceManager() ); printer.setContentWriter( targetRoot, new DefaultNameGenerator( targetRoot, filename, suffix ) ); printer.setDataWriter( targetRoot, new DefaultNameGenerator( targetRoot, "content" ) ); printer.setUrlRewriter( new FileSystemURLRewriter() ); outputProcessor.setPrinter( printer ); return new FlowReportProcessor( report, outputProcessor ); } };
protected HtmlOutputProcessor createOutputProcessor() { if ( "pageable".equals( exportMethod ) ) { //$NON-NLS-1$ return new PageableHtmlOutputProcessor( report.getConfiguration() ); } else if ( "flow".equals( exportMethod ) ) { //$NON-NLS-1$ return new FlowHtmlOutputProcessor(); } else { return new StreamHtmlOutputProcessor( report.getConfiguration() ); } } }
protected HtmlOutputProcessor createOutputProcessor() { if ( "pageable".equals( exportMethod ) ) { //$NON-NLS-1$ return new PageableHtmlOutputProcessor( report.getConfiguration() ); } else if ( "flow".equals( exportMethod ) ) { //$NON-NLS-1$ return new FlowHtmlOutputProcessor(); } else { return new StreamHtmlOutputProcessor( report.getConfiguration() ); } }
final String filename = IOUtils.getInstance().stripFileExtension( targetFile.getName() ); final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();
final String filename = IOUtils.getInstance().stripFileExtension( targetFile.getName() ); final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();
RepositoryUtilities.createLocation( zipRepository, RepositoryUtilities.splitPath( "data", "/" ) ); final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();
printer.setUrlRewriter( computeUrlRewriter() ); final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();
RepositoryUtilities.createLocation( zipRepository, RepositoryUtilities.splitPath( "data", "/" ) ); final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();