Class XmlDomParserThreadSafe
java.lang.Object
com.aquima.interactions.foundation.xml.parsing.XmlDomParserThreadSafe
Wrapper for the
XmlDOMParser
to make the parsing thread safe-
Method Summary
Modifier and TypeMethodDescriptionstatic XmlDomParserThreadSafe
Deprecated.static XmlDomParserThreadSafe
Deprecated.parse
(InputStream source)
-
Method Details
-
getXmlDOMParserDefaultInstance
Deprecated.Default XmlDOMParser ready to use, improved speed and lower memory usage.
Way faster and uses less memory than the equivalentnew XmlDOMParserBuilder().build();
- Returns:
- the XmlDOMParser
-
getXmlDOMParserNamespaceAwareInstance
Deprecated.Default NamespaceAware XmlDOMParser ready to use, improved speed and lower memory usage.
Way faster and uses less memory than the equivalentnew XmlDOMParserBuilder().namespaceAware(true).build();
- Returns:
- the XmlDOMParser
-
parse
- Parameters:
strXml
- an XML document as a String- Returns:
XmlDomParserResult
that wraps the result of the XmlDomParser- Throws:
XmlParseException
- in case of XML errors
-
parse
- Parameters:
source
- a SAX2 input source from which the XML is read- Returns:
XmlDomParserResult
that wraps the result of the XmlDomParser- Throws:
XmlParseException
- in case of XML errorsIOException
- when the source can't be read
-
XmlDomParserObjectPools.XMLDOMPARSER_THREADSAFE_DEFAULT