public interface DocumentBuilderProvider
DocumentBuilder instances. The
underlying implementation may cache or pool instances for performance.
Note: usually you will want to use the PerThreadDocumentBuilderProvider wrapped around a
SafeDocumentBuilderProvider.| Modifier and Type | Method and Description |
|---|---|
DocumentBuilder |
getDocumentBuilder(boolean validating)
Gets a pre-configured
DocumentBuilder from the underlying implementation. |
DocumentBuilder getDocumentBuilder(boolean validating) throws ParserConfigurationException
DocumentBuilder from the underlying implementation. Note: DocumentBuilder instances
are not thread-safe and so should not shared between threads. Multiple calls to this method on the same
provider from the same thread may return the same instance, but are not required to.validating - Whether the returned document builder should perform XML validation or not.ParserConfigurationException - if there is an error configuring the document builder.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.