/** * @deprecated Replaced by {@link JasperExportManager#exportReportToXmlStream(JasperPrint, OutputStream)}. */ public static void printReportToXmlStream( JasperPrint jasperPrint, OutputStream outputStream ) throws JRException { JasperExportManager.exportReportToXmlStream( jasperPrint, outputStream ); }
/** * @deprecated Replaced by {@link JasperExportManager#exportReportToXmlStream(InputStream, OutputStream)}. */ public static void printReportToXmlStream( InputStream inputStream, OutputStream outputStream ) throws JRException { JasperExportManager.exportReportToXmlStream( inputStream, outputStream ); }
/** * Export to XML * * @return SpecificTemplateExporterBuilderService * @throws JRException JRException exception * @throws FileNotFoundException FileNotFoundException exception */ public SpecificTemplateExporterBuilderService toXML() throws JRException, FileNotFoundException { JasperExportManager.exportReportToXmlStream(this.report, new FileOutputStream(new File(getTemplatePath().replace(extensionPattern, "xml")))); return this; }
/** * Export file to .jrpxml file * * @param report report builder * @param out file * @throws DRException DRException exception * @throws JRException JRException exception */ public static void exportReportToJRPXMLFile(JasperReportBuilder report, OutputStream out) throws DRException, JRException { JasperPrint jp = report.toJasperPrint(); JasperExportManager.exportReportToXmlStream(jp, out); }
/** * Exports the generated report object read from the supplied input stream into XML format, * and writes the result to the output stream specified by the second parameter. * The images are embedded into the XML content itself using the Base64 encoder. * * @param inputStream input stream to read the generated report object from * @param outputStream output stream to write the resulting XML representation to * @see net.sf.jasperreports.engine.export.JRPdfExporter */ public static void exportReportToXmlStream( InputStream inputStream, OutputStream outputStream ) throws JRException { JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(inputStream); exportReportToXmlStream(jasperPrint, outputStream); }