/** * Prints the stack trace of this exception to the specified stream. * * @param out the <code>PrintStream</code> to use for output */ public override void printStackTrace(java.lang.PrintStream outJ) { lock (outJ) { java.io.PrintWriter pw = new java.io.PrintWriter(outJ, false); printStackTrace(pw); // Flush the PrintWriter before it's GC'ed. pw.flush(); } }
public virtual void list(java.lang.PrintStream output) { output.println("-- listing properties --"); IDictionaryEnumerator e = this.GetEnumerator(); while (e.MoveNext()) { String key = e.Key.ToString(); String value = null == e.Value ? "" : e.Value.ToString(); if (value.Length > 40) { value = value.Substring(0, 37) + "..."; } output.println(key + "=" + value); } }
/** * Prints this <code>MarshalException</code>, its backtrace and * the cause's backtrace to the specified print stream. * * @param s <code>PrintStream</code> to use for output */ public override void printStackTrace(java.lang.PrintStream s) { base.printStackTrace(s); cause.printStackTrace(s); }
/* * Prints this <code>NoSuchMechanismException</code>, its backtrace and * the cause's backtrace to the specified print stream. * * @param s <code>PrintStream</code> to use for output */ public override void printStackTrace(java.lang.PrintStream s) { this.printStackTrace(new java.io.PrintWriter(s)); }