Package org.apache.vinci.transport.util
Class XMLConverter
java.lang.Object
org.apache.vinci.transport.util.XMLConverter
Methods for converting to / from regular strings and XML(entity ref)-encoded strings, as well as
HTML-formatted strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertStringToHTMLString
(String convert_me) static void
convertStringToHTMLString
(String convert_me, StringBuffer append_to_me) static String
convertStringToXMLString
(String convert_me) Convert to XML string format.static void
convertStringToXMLString
(String convert_me, StringBuffer append_to_me) static void
static String
simpleConvertStringToXMLString
(String convert_me) Convert to XML string format without ever using CDATA encoding.static void
simpleConvertStringToXMLString
(String convert_me, StringBuffer append_to_me)
-
Method Details
-
convertStringToXMLString
Convert to XML string format. Uses CDATA encoding if there are more than 4 characters requiring ampersand encoding.- Parameters:
convert_me
- -- Returns:
- the converted string
-
simpleConvertStringToXMLString
Convert to XML string format without ever using CDATA encoding.- Parameters:
convert_me
- -- Returns:
- the converted string
-
simpleConvertStringToXMLString
- Parameters:
convert_me
- -append_to_me
- -
-
convertStringToXMLString
- Parameters:
convert_me
- -append_to_me
- -
-
convertStringToHTMLString
- Parameters:
convert_me
- -- Returns:
- -
-
convertStringToHTMLString
- Parameters:
convert_me
- -append_to_me
- -
-
main
-