org.apache.axiom.om.util
Class CommonUtils

java.lang.Object
  extended by org.apache.axiom.om.util.CommonUtils

public class CommonUtils
extends java.lang.Object

Common Utilities


Constructor Summary
private CommonUtils()
          Private constructor.
 
Method Summary
static java.lang.String callStackToString()
          Get a string containing the stack of the current location
static java.lang.String replace(java.lang.String name, java.lang.String oldT, java.lang.String newT)
          replace: Like String.replace except that the old and new items are strings.
static java.lang.String stackToString(java.lang.Throwable e)
          Get a string containing the stack of the specified exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonUtils

private CommonUtils()
Private constructor. All methods of this class are static.

Method Detail

replace

public static final java.lang.String replace(java.lang.String name,
                                             java.lang.String oldT,
                                             java.lang.String newT)
replace: Like String.replace except that the old and new items are strings.

Parameters:
name - string
oldT - old text to replace
newT - new text to use
Returns:
replacement string

callStackToString

public static java.lang.String callStackToString()
Get a string containing the stack of the current location

Returns:
String

stackToString

public static java.lang.String stackToString(java.lang.Throwable e)
Get a string containing the stack of the specified exception

Parameters:
e -
Returns: