Java Doc for JasperExportManager.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.JasperExportManager

JasperExportManager
public class JasperExportManager (Code)
Façade class for exporting generated reports into more popular formats such as PDF, HTML and XML. This class contains convenience methods for exporting to only these 3 formats.

For exporting to XLS and CSV format or for using special exporter parameters, the specific exporter class should be used directly.
See Also:   net.sf.jasperreports.engine.JasperPrint
See Also:   net.sf.jasperreports.engine.export.JRHtmlExporter
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter
See Also:   net.sf.jasperreports.engine.export.JRXmlExporter
See Also:   net.sf.jasperreports.engine.export.JRXlsExporter
See Also:   net.sf.jasperreports.engine.export.JRCsvExporter
author:
   Teodor Danciu (teodord@users.sourceforge.net)
version:
   $Id: JasperExportManager.java 1229 2006-04-19 10:27:35Z teodord $





Method Summary
public static  StringexportReportToHtmlFile(String sourceFileName)
     Exports the generated report file specified by the parameter into HTML format. The resulting HTML file has the same name as the report object inside the source file, plus the *.html extension and it is located in the same directory as the source file. The images are placed as distinct files inside a directory having the same name as the HTML destination file, plus the "_files" suffix.
public static  voidexportReportToHtmlFile(String sourceFileName, String destFileName)
     Exports the generated report file specified by the first parameter into HTML format, placing the result into the second file parameter.

The images are placed as distinct files inside a directory having the same name as the HTML destination file, plus the "_files" suffix.

public static  voidexportReportToHtmlFile(JasperPrint jasperPrint, String destFileName)
     Exports the generated report object received as parameter into HTML format, placing the result into the second file parameter.

The images are placed as distinct files inside a directory having the same name as the HTML destination file, plus the "_files" suffix.

public static  byte[]exportReportToPdf(JasperPrint jasperPrint)
     Exports the generated report object received as parameter into PDF format and returns the binary content as a byte array.
public static  StringexportReportToPdfFile(String sourceFileName)
     Exports the generated report file specified by the parameter into PDF format.
public static  voidexportReportToPdfFile(String sourceFileName, String destFileName)
     Exports the generated report file specified by the first parameter into PDF format, the result being placed in the second file parameter.
public static  voidexportReportToPdfFile(JasperPrint jasperPrint, String destFileName)
     Exports the generated report file specified by the first parameter into PDF format, the result being placed in the second file parameter.
public static  voidexportReportToPdfStream(InputStream inputStream, OutputStream outputStream)
     Exports the generated report read from the supplied input stream into PDF format and writes the results to the output stream specified by the second parameter.
public static  voidexportReportToPdfStream(JasperPrint jasperPrint, OutputStream outputStream)
     Exports the generated report object received as first parameter into PDF format and writes the results to the output stream specified by the second parameter.
public static  StringexportReportToXml(JasperPrint jasperPrint)
     Exports the generated report object supplied as parameter into XML format and returs the result as String. The images are embedded into the XML content itself using the Base64 encoder.
public static  StringexportReportToXmlFile(String sourceFileName, boolean isEmbeddingImages)
     Exports the generated report file specified by the parameter into XML format. The resulting XML file has the same name as the report object inside the source file, plus the *.jrpxml extension and it is located in the same directory as the source file.

When exporting to XML format, the images can be either embedded in the XML content itself using the Base64 encoder or be referenced as external resources. If not embedded, the images are placed as distinct files inside a directory having the same name as the XML destination file, plus the "_files" suffix.

public static  voidexportReportToXmlFile(String sourceFileName, String destFileName, boolean isEmbeddingImages)
     Exports the generated report file specified by the first parameter into XML format, placing the result into the second file parameter.

If not embedded into the XML content itself using the Base64 encoder, the images are placed as distinct files inside a directory having the same name as the XML destination file, plus the "_files" suffix.

public static  voidexportReportToXmlFile(JasperPrint jasperPrint, String destFileName, boolean isEmbeddingImages)
     Exports the generated report object received as parameter into XML format, placing the result into the second file parameter.

If not embedded into the XML content itself using the Base64 encoder, the images are placed as distinct files inside a directory having the same name as the XML destination file, plus the "_files" suffix.

public static  voidexportReportToXmlStream(InputStream inputStream, OutputStream outputStream)
     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.
public static  voidexportReportToXmlStream(JasperPrint jasperPrint, OutputStream outputStream)
     Exports the generated report object supplied as the first parameter 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.



Method Detail
exportReportToHtmlFile
public static String exportReportToHtmlFile(String sourceFileName) throws JRException(Code)
Exports the generated report file specified by the parameter into HTML format. The resulting HTML file has the same name as the report object inside the source file, plus the *.html extension and it is located in the same directory as the source file. The images are placed as distinct files inside a directory having the same name as the HTML destination file, plus the "_files" suffix.
Parameters:
  sourceFileName - source file containing the generated report resulting HTML file name
See Also:   net.sf.jasperreports.engine.export.JRHtmlExporter



exportReportToHtmlFile
public static void exportReportToHtmlFile(String sourceFileName, String destFileName) throws JRException(Code)
Exports the generated report file specified by the first parameter into HTML format, placing the result into the second file parameter.

The images are placed as distinct files inside a directory having the same name as the HTML destination file, plus the "_files" suffix.
Parameters:
  sourceFileName - source file containing the generated report
Parameters:
  destFileName - file name to place the HTML content into
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter




exportReportToHtmlFile
public static void exportReportToHtmlFile(JasperPrint jasperPrint, String destFileName) throws JRException(Code)
Exports the generated report object received as parameter into HTML format, placing the result into the second file parameter.

The images are placed as distinct files inside a directory having the same name as the HTML destination file, plus the "_files" suffix.
Parameters:
  jasperPrint - report object to export
Parameters:
  destFileName - file name to place the HTML content into
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter




exportReportToPdf
public static byte[] exportReportToPdf(JasperPrint jasperPrint) throws JRException(Code)
Exports the generated report object received as parameter into PDF format and returns the binary content as a byte array.
Parameters:
  jasperPrint - report object to export byte array representing the resulting PDF content
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToPdfFile
public static String exportReportToPdfFile(String sourceFileName) throws JRException(Code)
Exports the generated report file specified by the parameter into PDF format. The resulting PDF file has the same name as the report object inside the source file, plus the *.pdf extension and it is located in the same directory as the source file.
Parameters:
  sourceFileName - source file containing the generated report resulting PDF file name
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToPdfFile
public static void exportReportToPdfFile(String sourceFileName, String destFileName) throws JRException(Code)
Exports the generated report file specified by the first parameter into PDF format, the result being placed in the second file parameter.
Parameters:
  sourceFileName - source file containing the generated report
Parameters:
  destFileName - file name to place the PDF content into
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToPdfFile
public static void exportReportToPdfFile(JasperPrint jasperPrint, String destFileName) throws JRException(Code)
Exports the generated report file specified by the first parameter into PDF format, the result being placed in the second file parameter.
Parameters:
  jasperPrint - report object to export
Parameters:
  destFileName - file name to place the PDF content into
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToPdfStream
public static void exportReportToPdfStream(InputStream inputStream, OutputStream outputStream) throws JRException(Code)
Exports the generated report read from the supplied input stream into PDF format and writes the results to the output stream specified by the second parameter.
Parameters:
  inputStream - input stream to read the generated report object from
Parameters:
  outputStream - output stream to write the resulting PDF content to
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToPdfStream
public static void exportReportToPdfStream(JasperPrint jasperPrint, OutputStream outputStream) throws JRException(Code)
Exports the generated report object received as first parameter into PDF format and writes the results to the output stream specified by the second parameter.
Parameters:
  jasperPrint - report object to export
Parameters:
  outputStream - output stream to write the resulting PDF content to
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToXml
public static String exportReportToXml(JasperPrint jasperPrint) throws JRException(Code)
Exports the generated report object supplied as parameter into XML format and returs the result as String. The images are embedded into the XML content itself using the Base64 encoder.
Parameters:
  jasperPrint - report object to export XML representation of the generated report
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToXmlFile
public static String exportReportToXmlFile(String sourceFileName, boolean isEmbeddingImages) throws JRException(Code)
Exports the generated report file specified by the parameter into XML format. The resulting XML file has the same name as the report object inside the source file, plus the *.jrpxml extension and it is located in the same directory as the source file.

When exporting to XML format, the images can be either embedded in the XML content itself using the Base64 encoder or be referenced as external resources. If not embedded, the images are placed as distinct files inside a directory having the same name as the XML destination file, plus the "_files" suffix.
Parameters:
  sourceFileName - source file containing the generated report
Parameters:
  isEmbeddingImages - flag that indicates whether the images should be embedded in theXML content itself using the Base64 encoder or be referenced as external resources XML representation of the generated report
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter




exportReportToXmlFile
public static void exportReportToXmlFile(String sourceFileName, String destFileName, boolean isEmbeddingImages) throws JRException(Code)
Exports the generated report file specified by the first parameter into XML format, placing the result into the second file parameter.

If not embedded into the XML content itself using the Base64 encoder, the images are placed as distinct files inside a directory having the same name as the XML destination file, plus the "_files" suffix.
Parameters:
  sourceFileName - source file containing the generated report
Parameters:
  destFileName - file name to place the XML representation into
Parameters:
  isEmbeddingImages - flag that indicates whether the images should be embedded in theXML content itself using the Base64 encoder or be referenced as external resources
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter




exportReportToXmlFile
public static void exportReportToXmlFile(JasperPrint jasperPrint, String destFileName, boolean isEmbeddingImages) throws JRException(Code)
Exports the generated report object received as parameter into XML format, placing the result into the second file parameter.

If not embedded into the XML content itself using the Base64 encoder, the images are placed as distinct files inside a directory having the same name as the XML destination file, plus the "_files" suffix.
Parameters:
  jasperPrint - report object to export
Parameters:
  destFileName - file name to place the XML representation into
Parameters:
  isEmbeddingImages - flag that indicates whether the images should be embedded in theXML content itself using the Base64 encoder or be referenced as external resources
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter




exportReportToXmlStream
public static void exportReportToXmlStream(InputStream inputStream, OutputStream outputStream) throws JRException(Code)
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.
Parameters:
  inputStream - input stream to read the generated report object from
Parameters:
  outputStream - output stream to write the resulting XML representation to
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



exportReportToXmlStream
public static void exportReportToXmlStream(JasperPrint jasperPrint, OutputStream outputStream) throws JRException(Code)
Exports the generated report object supplied as the first parameter 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.
Parameters:
  jasperPrint - report object to export
Parameters:
  outputStream - output stream to write the resulting XML representation to
See Also:   net.sf.jasperreports.engine.export.JRPdfExporter



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.