code: static public void writeStringAsCharArray(Writer writer, String str) throws IOException {
          writeStringAsCharArray(writer, str, 0, str.length());
      }
docs: Writes a portion of a string to a target java.io.Writer with direct access to the char[] of the java.lang.String
  
  @param  writer
  target java.io.Writer for output
  
  @param  str
  A String
  
  @throws  IOException
  If an I/O error occurs