public void write(String str) throws IOException {
  write(str,0,str.length());
}

public void write ( String str ) throws IOException { write ( str , 0 , str . length ( ) ) ; }
writes the characters from the specified string to the target .
