public int DM_RINT(int word) throws IOException {
    if (rf == null) {
      throw new IOException("DM_RINT: no file to read from");
    }
    if (dmLabel == null) {
      throw new IOException("DM_RINT: reader not initialized");
    }
    rf.seek(getOffset(word));
    // set the order
    if (needToSwap) {
      //if ((dmLabel.kmachn != MTMACH) &&
      //   ((dmLabel.kvmst && ! mvmst) ||
      //   (mvmst && !dmLabel.kvmst))) {
      rf.order(RandomAccessFile.LITTLE_ENDIAN);  // swap
    } else {
      rf.order(RandomAccessFile.BIG_ENDIAN);
    }
    int idata = rf.readInt();
    if (IMISSD != dmLabel.kmissd) {
      if (idata == dmLabel.kmissd) {
        idata = IMISSD;
      }
    }
    rf.order(RandomAccessFile.BIG_ENDIAN);
    return idata;
  }
public int DM_RINT(int word) throws IOException {
    if (rf == null) {
      throw new IOException("DM_RINT: no file to read from");
    }
    if (dmLabel == null) {
      throw new IOException("DM_RINT: reader not initialized");
    }
    rf.seek(getOffset(word));
    
    if (needToSwap) {
      
      
      
      rf.order(RandomAccessFile.LITTLE_ENDIAN);  
    } else {
      rf.order(RandomAccessFile.BIG_ENDIAN);
    }
    int idata = rf.readInt();
    if (IMISSD != dmLabel.kmissd) {
      if (idata == dmLabel.kmissd) {
        idata = IMISSD;
      }
    }
    rf.order(RandomAccessFile.BIG_ENDIAN);
    return idata;
  }
public int DM_RINT ( int word ) throws IOException { if ( rf == null ) { throw new IOException ( "DM_RINT: no file to read from" ) ; } if ( dmLabel == null ) { throw new IOException ( "DM_RINT: reader not initialized" ) ; } rf . seek ( getOffset ( word ) ) ; // set the order if ( needToSwap ) { //if ((dmLabel.kmachn != MTMACH) && //   ((dmLabel.kvmst && ! mvmst) || //   (mvmst && !dmLabel.kvmst))) { rf . order ( RandomAccessFile . LITTLE_ENDIAN ) ; // swap } else { rf . order ( RandomAccessFile . BIG_ENDIAN ) ; } int idata = rf . readInt ( ) ; if ( IMISSD != dmLabel . kmissd ) { if ( idata == dmLabel . kmissd ) { idata = IMISSD ; } } rf . order ( RandomAccessFile . BIG_ENDIAN ) ; return idata ; }
Read an integer

@param word word in file (1 based) to read
@return int read
@throws IOException problem reading file
Read an integer