commons-file/src/main/java/info/monitorenter/util/ExceptionUtil.java
public static void dumpThreadStack(PrintStream outprint) {
    StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
    String stackTraceString = StringUtil.arrayToString(stackTrace, "\n");
    outprint.println(stackTraceString);
  }
public static void dumpThreadStack(PrintStream outprint) {
    StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
    String stackTraceString = StringUtil.arrayToString(stackTrace, "\n");
    outprint.println(stackTraceString);
  }
public static void dumpThreadStack ( PrintStream outprint ) { StackTraceElement [ ] stackTrace = Thread . currentThread ( ) . getStackTrace ( ) ; String stackTraceString = StringUtil . arrayToString ( stackTrace , "\n" ) ; outprint . println ( stackTraceString ) ; }
Prints out the current Thread stack to the given stream.
<p>

@see Thread#getStackTrace()
@param outprint
the stream to print to (e.g. <code>{@link System#err}</code>).
Prints out the current Thread stack to the given stream . <p >