cdm/src/main/java/ucar/unidata/io/RandomAccessFile.java
public String readString(int nbytes) throws IOException {
    byte[] data = new byte[nbytes];
    readFully(data);
    return new String(data, CDM.utf8Charset);
  }
public String readString(int nbytes) throws IOException {
    byte[] data = new byte[nbytes];
    readFully(data);
    return new String(data, CDM.utf8Charset);
  }
Read a String of known length.

@param nbytes number of bytes to read
@return String wrapping the bytes.
@throws IOException if an I/O error occurs.