public class JRReportSaxParserFactory extends BaseSaxParserFactory
This factory creates a parser via the default SAX parser factory
(javax.xml.parsers.SAXParserFactory.newInstance()
).
JRXMLs are always validated using W3C XML schemas. Reports that refer the JasperReports DTD (which has been deprecated) are validated using an internal XML schema equivalent to the DTD.
To improve performance, XML schemas can be cached when using a Xerces
SAX parser. See BaseSaxParserFactory.PROPERTY_CACHE_SCHEMAS
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPILER_XML_VALIDATION
Whether to validate the xml report when compiling.
|
EXCEPTION_MESSAGE_KEY_INCOMPATIBLE_CLASS, EXCEPTION_MESSAGE_KEY_PARSER_CREATION_ERROR, EXCEPTION_MESSAGE_KEY_RESOURCE_NOT_FOUND, jasperReportsContext, PACKAGE_PREFIX_SUN_XERCES, PACKAGE_PREFIX_XERCES, POOL_CLASS_SUN_XERCES, POOL_CLASS_XERCES, PROPERTY_CACHE_SCHEMAS, XERCES_PARSER_PROPERTY_GRAMMAR_POOL
PROPERTY_PRINT_PARSER_FACTORY, PROPERTY_REPORT_PARSER_FACTORY
Constructor and Description |
---|
JRReportSaxParserFactory()
Deprecated.
Replaced by
JRReportSaxParserFactory(JasperReportsContext) . |
JRReportSaxParserFactory(JasperReportsContext jasperReportsContext) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
getSchemaLocations() |
protected boolean |
isValidating() |
configureParser, createParser, createSAXParserFactory, enableSchemaCaching, getFactory, getGrammarPoolCacheKey, getResourceURI, setGrammarPoolProperty
public static final java.lang.String COMPILER_XML_VALIDATION
Defaults to true
.
public JRReportSaxParserFactory()
JRReportSaxParserFactory(JasperReportsContext)
.public JRReportSaxParserFactory(JasperReportsContext jasperReportsContext)
protected boolean isValidating()
isValidating
in class BaseSaxParserFactory
protected java.util.List<java.lang.String> getSchemaLocations()
getSchemaLocations
in class BaseSaxParserFactory
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com