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 voidaddHandlers(XMLReader xmlReader) Adds the default EntityResolved and ErrorHandler for the DOM parser.protected XMLReadernewValue()private voidsetFeature(XMLReader xmlReader, String featureUri, boolean value) private voidsetFeature(XMLReader xmlReader, String featureUri, String configName) Attempts to set requested feature on the parser; logs exception if not supported or not recognized.private voidsetParserFeatures(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:
newValuein 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
-