|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.metadata.MetadataUtil
public class MetadataUtil
Method Summary | |
---|---|
static boolean |
containsInvalidXMLCharacters(String s)
Return whether the given string contains any character that is not valid in an XML document. |
static boolean |
isValidXMLCharacter(char c)
Return whether the given character is a valid XML character. |
static String |
stripInvalidXMLCharacters(String s)
This method ensures that the output String has only valid XML characters as specified by the XML 1.0 standard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String stripInvalidXMLCharacters(String s)
s
- The String whose non-valid characters we want to remove.
isValidXMLCharacter(char)
public static boolean containsInvalidXMLCharacters(String s)
s
-
true
if there is at least one invalid character.isValidXMLCharacter(char)
public static boolean isValidXMLCharacter(char c)
c
-
true
if the character is a valid XML character.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |