/**
  * 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();
     }
 }
示例#2
0
        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);
            }
        }
示例#3
0
 /**
  * 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));
 }