public short calcRecordLength(DbfTableModel model){
  int length=0;
  int columnCount=model.getColumnCount();
  for (int i=0; i <= columnCount - 1; i++) {
    length+=model.getLength(i);
  }
  length+=1;
  Integer integer=new Integer(length);
  return integer.shortValue();
}

public short calcRecordLength ( DbfTableModel model ) { int length = 0 ; int columnCount = model . getColumnCount ( ) ; for ( int i = 0 ; i <= columnCount - 1 ; i ++ ) { length += model . getLength ( i ) ; } length += 1 ; Integer integer = new Integer ( length ) ; return integer . shortValue ( ) ; }
calculates the length of the record by aggregating the length of each field
