gnu.xml
Class TextUtils
java.lang.Object
gnu.xml.TextUtils
public class TextUtils
- extends java.lang.Object
Method Summary |
static java.lang.String |
asString(java.lang.Object node)
|
static java.lang.String |
replaceWhitespace(java.lang.String str,
boolean collapse)
Create a normalized string. |
static java.lang.String |
stringValue(java.lang.Object node)
|
static void |
stringValue(java.lang.Object node,
java.lang.StringBuffer sbuf)
|
static void |
textValue(java.lang.Object arg,
Consumer out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextUtils
public TextUtils()
asString
public static java.lang.String asString(java.lang.Object node)
stringValue
public static java.lang.String stringValue(java.lang.Object node)
stringValue
public static void stringValue(java.lang.Object node,
java.lang.StringBuffer sbuf)
textValue
public static void textValue(java.lang.Object arg,
Consumer out)
replaceWhitespace
public static java.lang.String replaceWhitespace(java.lang.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.)