Package gnu.xml
Class TextUtils
java.lang.Object
gnu.xml.TextUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
replaceWhitespace
(String str, boolean collapse) Create a normalized string.static String
stringValue
(Object node) static void
stringValue
(Object node, StringBuffer sbuf) static void
-
Constructor Details
-
TextUtils
public TextUtils()
-
-
Method Details
-
asString
-
stringValue
-
stringValue
-
textValue
-
replaceWhitespace
Create a normalized string.- Returns:
- the original string if it was normalized; otherwise a fresh one. (XStringType.matcyhes assumes the above.)
-