com.atlassian.crowd.directory.ldap.util
Class XmlValidator
java.lang.Object
com.atlassian.crowd.directory.ldap.util.XmlValidator
public class XmlValidator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlValidator
public XmlValidator()
isSafe
public static boolean isSafe(String s)
- Verifies whether a string consists solely of valid XML characters.
- Returns:
- false if there are any invalid XML characters in the string.
isXmlCharacter
public static boolean isXmlCharacter(int c)
- Recognise valid XML characters as defined by
Extensible Markup Language, section 2.2.
- Parameters:
c
- a single character
- Returns:
Copyright © 2013 Atlassian. All Rights Reserved.