org.ws4d.java.util
Interface Toolkit


public interface Toolkit

This utility class includes a collection of methods, which are specific to different Java Editions.


Method Summary
 java.lang.String[] getStackTrace(java.lang.Throwable t)
          Returns the Java VM stack trace if possible.
 void printStackTrace(java.io.PrintStream err, java.lang.Throwable t)
          Implementation of the stack trace logging.
 

Method Detail

printStackTrace

void printStackTrace(java.io.PrintStream err,
                     java.lang.Throwable t)
Implementation of the stack trace logging.

Parameters:
err - Stream to, if possible, print the stack trace on.
t - Throwable to print.

getStackTrace

java.lang.String[] getStackTrace(java.lang.Throwable t)
Returns the Java VM stack trace if possible.

Can return null if the platform does not support access to the stack trace!

Parameters:
t - stack trace
Returns:
stack trace as array of String.