Package net.sf.jasperreports.engine.xml
Class JRPrintXmlLoader
- java.lang.Object
-
- net.sf.jasperreports.engine.xml.JRPrintXmlLoader
-
public class JRPrintXmlLoader extends Object
Utility class that helps reconverting XML documents intoJasperPrint
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 intoJasperPrint
objects by using this class.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRPrintXmlLoader(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JasperReportsContext
getJasperReportsContext()
static JasperPrint
load(InputStream is)
static JasperPrint
load(String sourceFileName)
static JasperPrint
load(JasperReportsContext jasperReportsContext, InputStream is)
static JasperPrint
loadFromFile(String sourceFileName)
static JasperPrint
loadFromFile(JasperReportsContext jasperReportsContext, String sourceFileName)
-
-
-
Constructor Detail
-
JRPrintXmlLoader
protected JRPrintXmlLoader(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
getJasperReportsContext
public JasperReportsContext getJasperReportsContext()
-
loadFromFile
public static JasperPrint loadFromFile(JasperReportsContext jasperReportsContext, String sourceFileName) throws JRException
- Throws:
JRException
-
loadFromFile
public static JasperPrint loadFromFile(String sourceFileName) throws JRException
- Throws:
JRException
- See Also:
loadFromFile(JasperReportsContext, String)
-
load
public static JasperPrint load(String sourceFileName) throws JRException
- Throws:
JRException
- See Also:
loadFromFile(String)
-
load
public static JasperPrint load(JasperReportsContext jasperReportsContext, InputStream is) throws JRException
- Throws:
JRException
-
load
public static JasperPrint load(InputStream is) throws JRException
- Throws:
JRException
- See Also:
load(JasperReportsContext, InputStream)
-
-