code: public static void copyStreamToWriter( InputStream in, Writer out, String encoding, boolean close )
          throws IOException
      {
          InputStreamReader reader = new InputStreamReader( in, encoding );
          copyReaderToWriter( reader, out, close );
      }
docs: Copies an InputStream to a Writer.
  
  @param in       The input byte stream of data.
  @param out      The Writer to receive the streamed data as characters.
  @param encoding The encoding used in 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.