Package org.docx4j.org.apache.poi.util
Class XMLHelper
java.lang.Object
org.docx4j.org.apache.poi.util.XMLHelper
Helper methods for working with javax.xml classes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static interfaceprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DocumentBuilderFactory(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final Stringprivate static longprivate static org.slf4j.Logger(package private) static final String(package private) static final String(package private) static final Stringprivate static final SAXParserFactory(package private) static final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderFactoryCreates a new DocumentBuilderFactory, with sensible defaultsstatic SAXParserFactorystatic SchemaFactorystatic TransformerFactoryprivate static Objectprivate static InputSourceignoreEntity(String publicId, String systemId) private static voidlogThrowable(Throwable t, String message, String name) static DocumentBuilderCreates a new document builder, with sensible defaultsstatic Transformerstatic XMLEventFactoryCreates a new StAX XMLEventFactory, with sensible defaultsstatic XMLInputFactoryCreates a new StAX XMLInputFactory, with sensible defaultsstatic XMLOutputFactoryCreates a new StAX XMLOutputFactory, with sensible defaultsstatic XMLReaderCreates a new SAX XMLReader, with sensible defaultsprivate static booleanquietSet(XMLHelper.SecurityProperty property, String name, Object value) private static booleantrySet(XMLHelper.SecurityFeature feature, String name, boolean value) private static booleantrySet(XMLHelper.SecurityProperty property, String name, Object value)
-
Field Details
-
FEATURE_LOAD_DTD_GRAMMAR
- See Also:
-
FEATURE_LOAD_EXTERNAL_DTD
- See Also:
-
FEATURE_DISALLOW_DOCTYPE_DECL
- See Also:
-
FEATURE_PARAMETER_ENTITIES
- See Also:
-
FEATURE_EXTERNAL_ENTITIES
- See Also:
-
PROPERTY_ENTITY_EXPANSION_LIMIT
- See Also:
-
PROPERTY_SECURITY_MANAGER
- See Also:
-
METHOD_ENTITY_EXPANSION_XERCES
- See Also:
-
SECURITY_MANAGERS
-
LOG
private static org.slf4j.Logger LOG -
lastLog
private static long lastLog -
documentBuilderFactory
-
saxFactory
-
-
Constructor Details
-
XMLHelper
private XMLHelper()
-
-
Method Details
-
getDocumentBuilderFactory
Creates a new DocumentBuilderFactory, with sensible defaults -
newDocumentBuilder
Creates a new document builder, with sensible defaults- Throws:
IllegalStateException- If creating the DocumentBuilder fails, e.g. due toParserConfigurationException.
-
getSaxParserFactory
-
newXMLReader
Creates a new SAX XMLReader, with sensible defaults -
newXMLInputFactory
Creates a new StAX XMLInputFactory, with sensible defaults -
newXMLOutputFactory
Creates a new StAX XMLOutputFactory, with sensible defaults -
newXMLEventFactory
Creates a new StAX XMLEventFactory, with sensible defaults -
getTransformerFactory
-
newTransformer
-
getSchemaFactory
-
getXercesSecurityManager
-
trySet
-
trySet
-
quietSet
-
logThrowable
-
ignoreEntity
-