thinkmap.xmlconfig
Class XMLUtils
java.lang.Object
thinkmap.xmlconfig.XMLUtils
public class XMLUtils
- extends Object
|
Method Summary |
static String |
XMLEncode(String s)
Encode a string, so that it does not contain any characters which
would make it unsuitable for usage as an attribute or contents in
an XML file. |
static void |
XMLEncode(StringBuffer result,
String s)
Encode a string, so that it does not contain any characters which
would make it unsuitable for usage as an attribute or contents in
an XML file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLEncode
public static final String XMLEncode(String s)
- Encode a string, so that it does not contain any characters which
would make it unsuitable for usage as an attribute or contents in
an XML file.
- Parameters:
s - String to encode.
- Returns:
- Encoded string.
XMLEncode
public static final void XMLEncode(StringBuffer result,
String s)
- Encode a string, so that it does not contain any characters which
would make it unsuitable for usage as an attribute or contents in
an XML file.
- Parameters:
result - Result of the encoding is appended to this.s - The String to encode.
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.