basicly i want to redirect the the Throwable.printStackTrace() / printStackTrace(PrintStream) / printStackTrace(PrintWriter) to a String / StringBuffer instead of System.err.

Does anyone know how to do this? plz help