public abstract class PooledXmlProcessor extends Object
Documents either for writing or already parsed from a given input
stream. The class manages a pool ofr DocumentBuilders internally and reuses them in different threads saving
cpu time from factory and builder instantiation.
Default pool size is 20.| Constructor and Description |
|---|
PooledXmlProcessor() |
PooledXmlProcessor(int basePoolSize) |
| Modifier and Type | Method and Description |
|---|---|
protected Document |
newDocument() |
protected Document |
readDocument(InputSource inputSource) |
protected Document |
readDocument(InputSource inputSource,
ErrorHandler errorHandler) |
public PooledXmlProcessor()
public PooledXmlProcessor(int basePoolSize)
protected Document newDocument() throws FactoryConfigurationError, ParserConfigurationException, SAXException, IOException
Document.FactoryConfigurationErrorParserConfigurationExceptionSAXExceptionIOExceptionprotected Document readDocument(InputSource inputSource, ErrorHandler errorHandler) throws FactoryConfigurationError, ParserConfigurationException, SAXException, IOException
inputSource - to parse fromerrorHandler - custom error handler for the parsing operationDocument instance.FactoryConfigurationErrorParserConfigurationExceptionSAXExceptionIOExceptionprotected Document readDocument(InputSource inputSource) throws FactoryConfigurationError, ParserConfigurationException, SAXException, IOException
inputSource - to parse fromDocument instance.FactoryConfigurationErrorParserConfigurationExceptionSAXExceptionIOExceptionCopyright © 2023 jUPnP.org. All rights reserved.