public static int parseStringAsInt(String in) throws IndexParseFieldException {
  try {
    return Integer.parseInt(in);
  }
 catch (  NumberFormatException e) {
    throw new IndexParseFieldException(in,e);
  }
}

public static int parseStringAsInt ( String in ) throws IndexParseFieldException { try { return Integer . parseInt ( in ) ; } catch ( NumberFormatException e ) { throw new IndexParseFieldException ( in , e ) ; } }
parses a string as a int .
