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(org.apache.log4j.Logger log) |
static org.dom4j.io.SAXReader |
newSecureSaxReader() |
static XMLInputFactory |
newSecureXmlInputFactory() |
static XMLReader |
newSecureXmlReader() |
static String |
sanitiseXml10(String value)
Removes non-XML 1.0 characters from the input string.
|
static Reader |
sanitiseXml10Reader(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 org.apache.log4j.Logger log)
public static XMLInputFactory newSecureXmlInputFactory()
public static XMLInputFactory configure(XMLInputFactory xmlInputFactory)
public static org.apache.commons.digester.Digester newSecureDigester()
public static XMLReader newSecureXmlReader()
@NotNull public static String sanitiseXml10(@NotNull String value)
@NotNull public static Reader sanitiseXml10Reader(@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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.