org.jfree.xml
public class ParserFrontend extends Object
ReportGenerator.getInstance().parseReport (URL myURl, URL contentBase);
| Constructor Summary | |
|---|---|
| protected | ParserFrontend(FrontendDefaultHandler parser)
Creates a new report generator. |
| Method Summary | |
|---|---|
| protected void | configureReader(XMLReader reader, FrontendDefaultHandler handler)
Configures the xml reader. |
| protected FrontendDefaultHandler | createDefaultHandler(URL contentBase)
Creates a new instance of the currently set default handler and sets the contentbase
for the handler to contentBase.
|
| FrontendDefaultHandler | getDefaultHandler()
Returns the ElementDefinitionHandler used for parsing reports.
|
| EntityResolver | getEntityResolver()
Returns the entity resolver.
|
| protected SAXParser | getParser()
Returns a SAX parser.
|
| boolean | isValidateDTD()
Returns true if the report definition should be validated against the
DTD, and false otherwise.
|
| protected Object | parse(InputSource input, URL contentBase)
Parses an XML report template file.
|
| Object | parse(URL file, URL contentBase)
Parses an XML file which is loaded using the given URL. |
| void | setDefaultHandler(FrontendDefaultHandler handler)
Sets the default handler used for parsing reports. |
| void | setEntityResolver(EntityResolver entityResolver)
Sets the entity resolver.
|
| void | setValidateDTD(boolean validateDTD)
Sets a flag that controls whether or not the report definition is validated
against the DTD.
|
Parameters: parser the parser that is used to coordinate the parsing process.
Parameters: handler the parser implementation that will handle the SAX-Callbacks. reader the xml reader that should be configured.
contentBase.
Parameters: contentBase the content base.
Returns: the report handler.
Returns: the report handler.
Returns: The entity resolver.
Returns: a SAXParser.
Throws: ParserConfigurationException if there is a problem configuring the parser. SAXException if there is a problem with the parser initialisation
true if the report definition should be validated against the
DTD, and false otherwise.
Returns: A boolean.
Parameters: input the input source. contentBase the content base.
Returns: the report.
Throws: ElementDefinitionException if an error occurred.
contentBase as base.
After the report is generated, the ReportDefinition-source and the contentbase are stored as string in the reportproperties.
Parameters: file the URL for the report template file. contentBase the URL for the report template content base.
Returns: the parsed report.
Throws: IOException if an I/O error occurs. ElementDefinitionException if there is a problem parsing the report template.
Parameters: handler the handler.
Parameters: entityResolver the entity resolver.
Parameters: validateDTD the flag.