code: public static void write( String content,
                                Writer writer ) throws IOException {
          IoUtil.write(content, writer);
      }
docs: Write the entire contents of the supplied string to the given writer. This method always flushes and closes the writer when
  finished.
  
  @param content the content to write to the writer; may be null
  @param writer the writer to which the content is to be written
  @throws IOException
  @throws IllegalArgumentException if the writer is null