org.apache.hadoop.util
Class StringUtils

java.lang.Object
  extended by org.apache.hadoop.util.StringUtils

public class StringUtils
extends Object

General string utils

Author:
Owen O'Malley

Constructor Summary
StringUtils()
           
 
Method Summary
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

StringUtils

public StringUtils()
Method Detail

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