Class XMLUtils.DocumentBuilderPool
java.lang.Object
org.docx4j.org.apache.xml.security.utils.WeakObjectPool<DocumentBuilder,ParserConfigurationException>
org.docx4j.org.apache.xml.security.utils.XMLUtils.DocumentBuilderPool
- Enclosing class:
- XMLUtils
private static final class XMLUtils.DocumentBuilderPool
extends WeakObjectPool<DocumentBuilder,ParserConfigurationException>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionDocumentBuilderPool(boolean validating, boolean disAllowDocTypeDeclarations) -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentBuilderCalled whenever a new pool object is desired; subclasses must implement.Methods inherited from class org.docx4j.org.apache.xml.security.utils.WeakObjectPool
getObject, repool
-
Field Details
-
validating
private final boolean validating -
disAllowDocTypeDeclarations
private final boolean disAllowDocTypeDeclarations
-
-
Constructor Details
-
DocumentBuilderPool
public DocumentBuilderPool(boolean validating, boolean disAllowDocTypeDeclarations)
-
-
Method Details
-
createObject
Description copied from class:WeakObjectPoolCalled whenever a new pool object is desired; subclasses must implement.- Specified by:
createObjectin classWeakObjectPool<DocumentBuilder,ParserConfigurationException> - Returns:
- object of the type desired by the subclass
- Throws:
ParserConfigurationException
-