jdk/src/share/classes/java/io/RandomAccessFile.java
changeset 11121 4cdbb7f9480f
parent 11017 353f81426721
child 11676 7e75ec031b97
equal deleted inserted replaced
11120:f8576c769572 11121:4cdbb7f9480f
  1047      * the file pointer.
  1047      * the file pointer.
  1048      *
  1048      *
  1049      * @param      s   a string of bytes to be written.
  1049      * @param      s   a string of bytes to be written.
  1050      * @exception  IOException  if an I/O error occurs.
  1050      * @exception  IOException  if an I/O error occurs.
  1051      */
  1051      */
       
  1052     @SuppressWarnings("deprecation")
  1052     public final void writeBytes(String s) throws IOException {
  1053     public final void writeBytes(String s) throws IOException {
  1053         int len = s.length();
  1054         int len = s.length();
  1054         byte[] b = new byte[len];
  1055         byte[] b = new byte[len];
  1055         s.getBytes(0, len, b, 0);
  1056         s.getBytes(0, len, b, 0);
  1056         writeBytes(b, 0, len);
  1057         writeBytes(b, 0, len);