/** * Writes a printable representation of this {@code Throwable}'s stack trace * to the specified print stream. If the {@code Throwable} contains a * {@link #getCause() cause}, the method will be invoked recursively for * the nested {@code Throwable}. * * @param err * the stream to write the stack trace on. */ public virtual void printStackTrace(PrintStream err) { // we want better OO and do not implement two time same, so we delegate to next this.printStackTrace(new java.io.PrintWriter(err, true)); }
public void setOut(PrintStream outputPrintStream) { outJ = outputPrintStream; }
static SystemJ() { outJ = new dotnet.lang.ConsoleOutputPrintStream(); inJ = new dotnet.lang.ConsoleInputStream(); err = new dotnet.lang.ConsoleErrorPrintStream(); }
/** * Writes a printable representation of this {@code Throwable}'s stack trace * to the specified print stream. If the {@code Throwable} contains a * {@link #getCause() cause}, the method will be invoked recursively for * the nested {@code Throwable}. * * @param err * the stream to write the stack trace on. */ public virtual void printStackTrace(PrintStream err) { // we want better OO and do not implement two time same, so we delegate to next this.printStackTrace(new java.io.PrintWriter(err,true)); }