Package com.atlassian.bamboo.utils.xml
Class BambooXmlUtils
java.lang.Object
com.atlassian.bamboo.utils.xml.BambooXmlUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMLInputFactory
configure
(XMLInputFactory xmlInputFactory) static org.apache.commons.digester.Digester
static DocumentBuilderFactory
newSecureDocumentBuilderFactory
(@Nullable org.apache.log4j.Logger log) static org.dom4j.io.SAXReader
static XMLInputFactory
static XMLReader
Deprecated.since 6.4, use {@link SecureXmlParserFactory::newXmlReader}static @NotNull String
sanitiseXml10
(@NotNull String value) Removes non-XML 1.0 characters from the input string.static @NotNull Reader
sanitiseXml10Reader
(@NotNull Reader in) FiltersReader
and removes illegal XML 1.0 characters as defined byBambooUnicodeUtils.validXml10(int)
-
Method Details
-
newSecureSaxReader
public static org.dom4j.io.SAXReader newSecureSaxReader() -
newSecureDocumentBuilderFactory
public static DocumentBuilderFactory newSecureDocumentBuilderFactory(@Nullable @Nullable org.apache.log4j.Logger log) -
newSecureXmlInputFactory
-
configure
-
newSecureDigester
public static org.apache.commons.digester.Digester newSecureDigester() -
newSecureXmlReader
Deprecated.since 6.4, use {@link SecureXmlParserFactory::newXmlReader} -
sanitiseXml10
Removes non-XML 1.0 characters from the input string. The input string is returned as-is if no invalid characters are found. -
sanitiseXml10Reader
FiltersReader
and removes illegal XML 1.0 characters as defined byBambooUnicodeUtils.validXml10(int)
- Returns:
- filtered
Reader
with no illegal XML 1.0 characters
-