code: public void printStackTrace(java.io.PrintStream s) {
          printStackTrace(new java.io.PrintWriter(s));
      }
docs: Print the the trace of methods from where the error
  originated.  This will trace all nested exception
  objects, as well as this object.
  @param s The stream where the dump will be sent to.