org.apache.hadoop.util
Class StringUtils
java.lang.Object
org.apache.hadoop.util.StringUtils
- public class StringUtils
- extends Object
General string utils
- Author:
- Owen O'Malley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtils
public StringUtils()
stringifyException
public static String stringifyException(Throwable e)
- Make a string representation of the exception.
- Parameters:
e
- The exception to stringify
- Returns:
- A string with exception name and call stack.
simpleHostname
public static String simpleHostname(String fullHostname)
- Given a full hostname, return the word upto the first dot.
- Parameters:
fullHostname
- the full hostname
- Returns:
- the hostname to the first dot
Copyright © 2006 The Apache Software Foundation