|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.util.StringUtils
public class StringUtils
General string utils
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static String |
arrayToString(String[] strs)
Given an array of strings, return a comma-separated list of its elements. |
static String |
humanReadableInt(long number)
Given an integer, return a string that is in an approximate, but human readable format. |
static String |
simpleHostname(String fullHostname)
Given a full hostname, return the word upto the first dot. |
static String |
stringifyException(Throwable e)
Make a string representation of the exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static String stringifyException(Throwable e)
e
- The exception to stringify
public static String simpleHostname(String fullHostname)
fullHostname
- the full hostname
public static String humanReadableInt(long number)
number
- the number to format
public static String arrayToString(String[] strs)
strs
- Array of strings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |