code: public OutputStream reset(OutputStream out)
              throws IOException
      {
          OutputStream old = this.out;
          this.out = out;
          return old;
      }
docs: Reset Stream. This method doesn't close the old stream.
  
  @param out new stream
  @return the old stream