public class BambooXmlUtils extends Object
Modifier and Type | Method and Description |
---|---|
static XMLInputFactory |
configure(XMLInputFactory xmlInputFactory) |
static org.apache.commons.digester.Digester |
newSecureDigester() |
static DocumentBuilderFactory |
newSecureDocumentBuilderFactory(@Nullable org.apache.log4j.Logger log) |
static org.dom4j.io.SAXReader |
newSecureSaxReader() |
static XMLInputFactory |
newSecureXmlInputFactory() |
static XMLReader |
newSecureXmlReader()
Deprecated.
since 6.4, use
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)
Filters
Reader and removes illegal XML 1.0 characters as defined by BambooUnicodeUtils.validXml10(int) |
public static org.dom4j.io.SAXReader newSecureSaxReader()
public static DocumentBuilderFactory newSecureDocumentBuilderFactory(@Nullable @Nullable org.apache.log4j.Logger log)
public static XMLInputFactory newSecureXmlInputFactory()
public static XMLInputFactory configure(XMLInputFactory xmlInputFactory)
public static org.apache.commons.digester.Digester newSecureDigester()
@Deprecated public static XMLReader newSecureXmlReader()
SecureXmlParserFactory::newXmlReader
@NotNull public static @NotNull String sanitiseXml10(@NotNull @NotNull String value)
@NotNull public static @NotNull Reader sanitiseXml10Reader(@NotNull @NotNull Reader in)
Reader
and removes illegal XML 1.0 characters as defined by BambooUnicodeUtils.validXml10(int)
Reader
with no illegal XML 1.0 charactersCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.