Package gnu.xml

Class TextUtils

java.lang.Object
gnu.xml.TextUtils

public class TextUtils extends Object
  • Constructor Details

    • TextUtils

      public TextUtils()
  • Method Details

    • asString

      public static String asString(Object node)
    • stringValue

      public static String stringValue(Object node)
    • stringValue

      public static void stringValue(Object node, StringBuffer sbuf)
    • textValue

      public static void textValue(Object arg, Consumer out)
    • replaceWhitespace

      public static String replaceWhitespace(String str, boolean collapse)
      Create a normalized string.
      Returns:
      the original string if it was normalized; otherwise a fresh one. (XStringType.matcyhes assumes the above.)