code: public static void copyReaderToStream( Reader in, OutputStream out, String encoding, boolean close )
          throws IOException
      {
          OutputStreamWriter writer = new OutputStreamWriter( out, encoding );
          copyReaderToWriter( in, writer, close );
      }
docs: Copies the content of the Reader to the provided OutputStream using the provided encoding.
  
  @param in       The character data to convert.
  @param out      The OutputStream to send the data to.
  @param encoding The character encoding that should be used for the byte stream.
  @param close    true if the Reader and OutputStream should be closed after the completion.
  
  @throws IOException If an underlying I/O Exception occurs.