|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.xml.JRXmlTemplateLoader
public class JRXmlTemplateLoader
Utility class that loads templates
from XML representations.
Constructor Summary | |
---|---|
protected |
JRXmlTemplateLoader()
|
Method Summary | |
---|---|
static JRTemplate |
load(java.io.File file)
Parses a template XML file into a template object . |
static JRTemplate |
load(java.io.InputStream data)
Parses a template XML data stream into a template object . |
static JRTemplate |
load(java.lang.String location)
Parses a template XML found at a specified location into a template object . |
static JRTemplate |
load(java.net.URL url)
Parses a template XML located at a URL into a template object . |
protected JRTemplate |
loadTemplate(java.io.InputStream data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JRXmlTemplateLoader()
Method Detail |
---|
public static JRTemplate load(java.lang.String location) throws JRException
template object
.
location
- the template XML location.
Can be a URL, a file path or a classloader resource name.
JRException
- when the location cannot be resolved or readJRLoader.loadBytesFromLocation(String)
public static JRTemplate load(java.io.File file)
template object
.
file
- the template XML file
public static JRTemplate load(java.net.URL url)
template object
.
url
- the location of the template XML
public static JRTemplate load(java.io.InputStream data)
template object
.
data
- the data stream
protected JRTemplate loadTemplate(java.io.InputStream data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |