public Integer integer_attribute(String name) throws InvalidPropertiesFormatException {
  String val=get_attr(name);
  if (val == null)   return null;
  try {
    return Integer.parseInt(val);
  }
 catch (  NumberFormatException e) {
    throw new InvalidPropertiesFormatException(e);
  }
}

public Integer integer_attribute ( String name ) throws InvalidPropertiesFormatException { String val = get_attr ( name ) ; if ( val == null ) return null ; try { return Integer . parseInt ( val ) ; } catch ( NumberFormatException e ) { throw new InvalidPropertiesFormatException ( e ) ; } }
returns an integer value for the specified attribute . returns null if the attribute does not exist . throws an exception if the value of the attribute is not a valid integer
