private int readIndexWithFieldType(char ft) throws EOFException, FormatException {
switch (ft) {
case 'S':
    return (int)inputFile.readShort();
case 'I':
  return inputFile.readInteger();
}
throw new FormatException("Unrecognized FieldTypeOfIndex");
}

private int readIndexWithFieldType ( char ft ) throws EOFException , FormatException { switch ( ft ) { case 'S' : return ( int ) inputFile . readShort ( ) ; case 'I' : return inputFile . readInteger ( ) ; } throw new FormatException ( "Unrecognized FieldTypeOfIndex" ) ; }
utility method to read rows .
