Package net.sf.jasperreports.engine.xml
Class JRXmlWriter
java.lang.Object
net.sf.jasperreports.engine.xml.JRXmlWriter
A writer that produces the JRXML representation of an in-memory report.
Sometimes report designs are generated automatically using the JasperReports API. Report design objects obtained this way can be serialized for disk storage or transferred over the network, but they also can be stored in JRXML format.
The JRXML representation of a given report design object can be obtained by using one
of the public static writeReport() methods exposed by this class.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net), Minor enhancements by Barry Klawans (bklawans@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(JRReport report, OutputStream outputStream, String encoding) voidstatic voidwriteReport(JRReport report, OutputStream outputStream, String encoding) static StringwriteReport(JRReport report, String encoding) protected voidwriteReport(JRReport report, String encoding, Writer out) static voidwriteReport(JRReport report, String destFileName, String encoding)
-
Field Details
-
PROPERTY_REPORT_VERSION
Property that specifies the JasperReports version associated with this report. Report elements/attributes newer than this version are neglected by the JRXML writers when a report template is generated. If not set, all elements/attributes will be printed out.- See Also:
-
EXCEPTION_MESSAGE_KEY_FILE_WRITE_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_OUTPUT_STREAM_WRITE_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_REPORT_DESIGN_WRITE_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_CHART_TYPE
- See Also:
-
PREFIX_EXCLUDE_PROPERTIES
- See Also:
-
PROPERTY_EXCLUDE_UUIDS
- See Also:
-
-
Constructor Details
-
JRXmlWriter
-
-
Method Details
-
getReport
-
write
-
write
- Throws:
JRException
-
write
- Throws:
JRException
-
writeReport
- See Also:
-
writeReport
public static void writeReport(JRReport report, String destFileName, String encoding) throws JRException - Throws:
JRException- See Also:
-
writeReport
public static void writeReport(JRReport report, OutputStream outputStream, String encoding) throws JRException - Throws:
JRException- See Also:
-
writeReport
- Throws:
IOException
-