Package gnu.xml

Class TextUtils


  • public class TextUtils
    extends Object
    • Constructor Detail

      • TextUtils

        public TextUtils()
    • Method Detail

      • stringValue

        public static String stringValue​(Object node)
      • 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.)