Package net.sf.jasperreports.engine.xml
Class JRPrintXmlLoader
java.lang.Object
net.sf.jasperreports.engine.xml.JRPrintXmlLoader
Utility class that helps reconverting XML documents into
JasperPrint
objects.
Generated documents can be stored in XML format if they are exported using the
JRXmlExporter
. After they're exported,
one can parse them back into JasperPrint
objects
by using this class.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JRPrintXmlLoader
(JasperReportsContext jasperReportsContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic JasperPrint
load
(InputStream is) static JasperPrint
static JasperPrint
load
(JasperReportsContext jasperReportsContext, InputStream is) static JasperPrint
loadFromFile
(String sourceFileName) static JasperPrint
loadFromFile
(JasperReportsContext jasperReportsContext, String sourceFileName)
-
Constructor Details
-
JRPrintXmlLoader
-
-
Method Details
-
getJasperReportsContext
-
loadFromFile
public static JasperPrint loadFromFile(JasperReportsContext jasperReportsContext, String sourceFileName) throws JRException - Throws:
JRException
-
loadFromFile
- Throws:
JRException
- See Also:
-
load
- Throws:
JRException
- See Also:
-
load
public static JasperPrint load(JasperReportsContext jasperReportsContext, InputStream is) throws JRException - Throws:
JRException
-
load
- Throws:
JRException
- See Also:
-