info.monitorenter.util
Class ExceptionUtil

java.lang.Object
  extended by info.monitorenter.util.ExceptionUtil

public final class ExceptionUtil
extends java.lang.Object

Nice static helpers for working with Strings.

Maybe not always the fastest solution to call in here, but working. Also usable for seeing examples and cutting code for manual inlining.

Version:
$Revision: 1.2 $
Author:
Achim.Westermann@gmx.de

Constructor Summary
ExceptionUtil()
           
 
Method Summary
static void dumpThreadStack(java.io.PrintStream outprint)
          Prints out the current Thread stack to the given stream.
static ExceptionUtil instance()
          Returns the singleton instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
Method Detail

instance

public static ExceptionUtil instance()
Returns the singleton instance of this class.

This method is useless for now as all methods are static. It may be used in future if VM-global configuration will be put to the state of the instance.

Returns:
the singleton instance of this class.

dumpThreadStack

public static void dumpThreadStack(java.io.PrintStream outprint)
Prints out the current Thread stack to the given stream.

Parameters:
outprint - the stream to print to (e.g. System.err).
See Also:
Thread.getStackTrace()


Copyright © 2001 - 2010 LGPL, All Rights Footloose.