Class XMLConverter

java.lang.Object
org.apache.vinci.transport.util.XMLConverter

public class XMLConverter extends Object
Methods for converting to / from regular strings and XML(entity ref)-encoded strings, as well as HTML-formatted strings.
  • Method Details

    • convertStringToXMLString

      public static String convertStringToXMLString(String convert_me)
      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

      public static String simpleConvertStringToXMLString(String convert_me)
      Convert to XML string format without ever using CDATA encoding.
      Parameters:
      convert_me - -
      Returns:
      the converted string
    • simpleConvertStringToXMLString

      public static void simpleConvertStringToXMLString(String convert_me, StringBuffer append_to_me)
      Parameters:
      convert_me - -
      append_to_me - -
    • convertStringToXMLString

      public static void convertStringToXMLString(String convert_me, StringBuffer append_to_me)
      Parameters:
      convert_me - -
      append_to_me - -
    • convertStringToHTMLString

      public static String convertStringToHTMLString(String convert_me)
      Parameters:
      convert_me - -
      Returns:
      -
    • convertStringToHTMLString

      public static void convertStringToHTMLString(String convert_me, StringBuffer append_to_me)
      Parameters:
      convert_me - -
      append_to_me - -
    • main

      public static void main(String[] args)