code: public void write(Writer out)
           throws IOException
      {
          if (reader==null)
              return;
          
          try{
              IO.copy(reader,out);
          }
          finally
          {
              reader.close();
              reader=null;
          }
      }
docs: /* ----------------------------------------------------------------