|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.common.StringUtils
public final class StringUtils
Offers two methods to convert an object to a string representation and restore the object given its string representation. Should use Hadoop Stringifier whenever available.
| Method Summary | ||
|---|---|---|
static String |
escapeXML(CharSequence input)
|
|
static
|
fromString(String str)
Restores the object from its string representation. |
|
static String |
toString(Object obj)
Converts the object to a one-line string representation |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String toString(Object obj)
obj - the object to convert
public static <T> T fromString(String str)
str - the string representation of the object
public static String escapeXML(CharSequence input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||