cdm/src/main/java/ucar/unidata/io/RandomAccessFile.java
public final void writeBytes(char b[], int off, int len) throws IOException {
    for (int i = off; i < len; i++) {
      write((byte) b[i]);
    }
  }
public final void writeBytes(char b[], int off, int len) throws IOException {
    for (int i = off; i < len; i++) {
      write((byte) b[i]);
    }
  }
public final void writeBytes ( char b [ ] , int off , int len ) throws IOException { for ( int i = off ; i < len ; i ++ ) { write ( ( byte ) b [ i ] ) ; } }
Writes the character array to the file as a sequence of bytes. Each
character in the string is written out, in sequence, by discarding
its high eight bits.

@param b   a character array of bytes to be written.
@param off the index of the first character to write.
@param len the number of characters to write.
@throws IOException if an I/O error occurs.
Writes the character array to the file as a sequence of bytes . Each character in the string is written out in sequence by discarding its high eight bits .