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
ConstructorsModifierConstructorDescriptionprotectedJRPrintXmlLoader(JasperReportsContext jasperReportsContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic JasperPrintload(InputStream is) static JasperPrintstatic JasperPrintload(JasperReportsContext jasperReportsContext, InputStream is) static JasperPrintloadFromFile(String sourceFileName) static JasperPrintloadFromFile(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:
-