public class XMLDataSource extends DataSource
| Constructor and Description |
|---|
XMLDataSource(java.io.InputStream source)
Creates a new data source from xml.
|
XMLDataSource(java.lang.String xmlFile)
Creates a new data source from xml.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
deliver(ReportData data)
Use this callback method within deliverData() to build a report with
given data.
|
protected void |
deliverData() |
protected org.apache.commons.logging.Log |
getLogger()
Gets the logger as set in de.vc.report.env.Environment.
|
boolean |
isIgnoreForeignNodes()
Returns true if foreign XML nodes are ignored, otherwise an error
is logged.
|
void |
setIgnoreForeignNodes(boolean ignoreForeignNodes)
Sets wether foreigner XML nodes are ignored when parsing XML.
|
getDataCountpublic XMLDataSource(java.io.InputStream source)
source - XML stream.public XMLDataSource(java.lang.String xmlFile)
throws java.io.IOException
xmlFile - XML file.java.io.IOExceptionprotected void deliver(ReportData data) throws ReportException
deliver in class DataSourcedata - ReportData.ReportExceptionprotected void deliverData()
throws ReportException
deliverData in class DataSourceReportExceptionprotected org.apache.commons.logging.Log getLogger()
getLogger in class DataSourcepublic boolean isIgnoreForeignNodes()
public void setIgnoreForeignNodes(boolean ignoreForeignNodes)
ReportMixedXMLSource.java in our example directory.ignoreForeignNodes - true if foreign XML nodes are ignored.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.