public class PrintSaxParserFactory extends BaseSaxParserFactory
This factory creates a parser via the default SAX parser factory
(javax.xml.parsers.SAXParserFactory.newInstance()
).
XML exports 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 String |
EXPORT_XML_VALIDATION
Validation flag used by the XML exporter.
|
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 |
---|
PrintSaxParserFactory() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getSchemaLocations() |
protected boolean |
isValidating() |
configureParser, createParser, createSAXParserFactory, enableSchemaCaching, getGrammarPoolCacheKey, getResourceURI, setGrammarPoolProperty
public static final String EXPORT_XML_VALIDATION
Defaults to true
.
protected boolean isValidating()
isValidating
in class BaseSaxParserFactory
protected List<String> getSchemaLocations()
getSchemaLocations
in class BaseSaxParserFactory
Copyright © 2015. All rights reserved.