Package org.xhtmlrenderer.resource
Class XMLResource.XMLReaderPool
java.lang.Object
org.xhtmlrenderer.resource.XMLResource.ObjectPool<XMLReader>
org.xhtmlrenderer.resource.XMLResource.XMLReaderPool
- Enclosing class:
XMLResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addHandlers
(XMLReader xmlReader) Adds the default EntityResolved and ErrorHandler for the DOM parser.protected XMLReader
newValue()
private void
setFeature
(XMLReader xmlReader, String featureUri, boolean value) private void
setFeature
(XMLReader xmlReader, String featureUri, String configName) Attempts to set requested feature on the parser; logs exception if not supported or not recognized.private void
setParserFeatures
(XMLReader xmlReader) Sets all standard features for SAX parser, using values from Configuration.Methods inherited from class org.xhtmlrenderer.resource.XMLResource.ObjectPool
get, release
-
Field Details
-
preserveElementContentWhitespace
private final boolean preserveElementContentWhitespace
-
-
Constructor Details
-
XMLReaderPool
private XMLReaderPool() -
XMLReaderPool
private XMLReaderPool(int capacity)
-
-
Method Details
-
newValue
- Specified by:
newValue
in classXMLResource.ObjectPool<XMLReader>
-
addHandlers
Adds the default EntityResolved and ErrorHandler for the DOM parser. -
setParserFeatures
Sets all standard features for SAX parser, using values from Configuration. -
setFeature
Attempts to set requested feature on the parser; logs exception if not supported or not recognized. -
setFeature
-