visad/src/main/java/ucar/nc2/iosp/gempak/GempakFileReader.java
public void DM_RINT(int word, int num, int[] iarray, int start)
          throws IOException {

    for (int i = 0; i < num; i++) {
      if (start + i > iarray.length) {
        throw new IOException(
                "DM_RINT: start+num exceeds iarray length");
      }
      iarray[start + i] = DM_RINT(word + i);
    }

  }
public void DM_RINT(int word, int num, int[] iarray, int start)
          throws IOException {

    for (int i = 0; i < num; i++) {
      if (start + i > iarray.length) {
        throw new IOException(
                "DM_RINT: start+num exceeds iarray length");
      }
      iarray[start + i] = DM_RINT(word + i);
    }

  }
public void DM_RINT ( int word , int num , int [ ] iarray , int start ) throws IOException { for ( int i = 0 ; i < num ; i ++ ) { if ( start + i > iarray . length ) { throw new IOException ( "DM_RINT: start+num exceeds iarray length" ) ; } iarray [ start + i ] = DM_RINT ( word + i ) ; } }
Read into an array of ints.

@param word   word in file (1 based) to read
@param iarray array to read into
@param start  starting word in the array (0 based)
@param num    number of words to read
@throws IOException problem reading file
Read into an array of ints .