|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.xml.ParserFrontend
com.jrefinery.report.io.ReportGenerator
The reportgenerator initializes the parser and provides an interface
the the default parser.
To create a report from an URL, use
ReportGenerator.getInstance().parseReport (URL myURl, URL contentBase);
| Constructor Summary | |
protected |
ReportGenerator()
Creates a new report generator. |
| Method Summary | |
static ReportGenerator |
getInstance()
Returns a single shared instance of the ReportGenerator. |
void |
initFromSystem()
Tries to initilialize the generator by reading the system property "com.jrefinery.report.dtd". |
JFreeReport |
parseReport(java.io.File file)
Parses an XML file which is loaded using the given file. |
JFreeReport |
parseReport(org.xml.sax.InputSource input,
java.net.URL contentBase)
Parses an XML report template file. |
JFreeReport |
parseReport(java.lang.String file)
Parses a report using the given parameter as filename and the directory containing the file as content base. |
JFreeReport |
parseReport(java.net.URL file)
Parses an XML file which is loaded using the given URL. |
JFreeReport |
parseReport(java.net.URL file,
java.net.URL contentBase)
Parses an XML file which is loaded using the given URL. |
| Methods inherited from class org.jfree.xml.ParserFrontend |
createDefaultHandler, getDefaultHandler, getEntityResolver, getParser, isValidateDTD, parse, parse, setDefaultHandler, setEntityResolver, setValidateDTD |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ReportGenerator()
| Method Detail |
public void initFromSystem()
public JFreeReport parseReport(java.lang.String file)
throws java.io.IOException,
org.jfree.xml.ElementDefinitionException
file - the file name.
java.io.IOException - if an I/O error occurs.
org.jfree.xml.ElementDefinitionException - if there is a problem parsing the
report template.
public JFreeReport parseReport(java.net.URL file)
throws org.jfree.xml.ElementDefinitionException,
java.io.IOException
file as base.
file - the URL for the report template file.
java.io.IOException - if an I/O error occurs.
org.jfree.xml.ElementDefinitionException - if there is a problem parsing
the report template.
public JFreeReport parseReport(java.net.URL file,
java.net.URL contentBase)
throws org.jfree.xml.ElementDefinitionException,
java.io.IOException
contentBase as base.
After the report is generated, the ReportDefinition-source and the contentbase are stored as string in the reportproperties.
file - the URL for the report template file.contentBase - the URL for the report template content base.
java.io.IOException - if an I/O error occurs.
org.jfree.xml.ElementDefinitionException - if there is a problem parsing
the report template.
public JFreeReport parseReport(java.io.File file)
throws java.io.IOException,
org.jfree.xml.ElementDefinitionException
file as base.
file - the report template file.
java.io.IOException - if an I/O error occurs.
org.jfree.xml.ElementDefinitionException - if there is a problem parsing
the report template.
public JFreeReport parseReport(org.xml.sax.InputSource input,
java.net.URL contentBase)
throws org.jfree.xml.ElementDefinitionException
input - the input source.contentBase - the content base.
org.jfree.xml.ElementDefinitionException - if an error occurred.public static ReportGenerator getInstance()
ReportGenerator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||