protected Properties loadProperties(File filehandle,String objName) throws SMSException {
  FileInputStream fileistr=null;
  try {
    fileistr=new FileInputStream(filehandle);
    Properties props=new CaseInsensitiveProperties();
    props.load(fileistr);
    return props;
  }
 catch (  FileNotFoundException e) {
    String errmsg="SMSFlatFileObject.loadProperties: " + objName + " File, "+ filehandle.getPath()+ e.getMessage();
    mDebug.error("SMSFlatFileObject.loadProperties",e);
    throw new ServiceNotFoundException(errmsg);
  }
catch (  IOException e) {
    String errmsg="SMSFlatFileObject.loadProperties: " + objName + " File, "+ filehandle.getPath()+ e.getMessage();
    mDebug.error("SMSFlatFileObject.loadProperties",e);
    throw new ServiceNotFoundException(errmsg);
  }
catch (  IllegalArgumentException e) {
    String errmsg="SMSFlatFileObject.loadProperties: " + objName + " File, "+ filehandle.getPath()+ e.getMessage();
    mDebug.error("SMSFlatFileObject.loadProperties",e);
    throw new ServiceNotFoundException(errmsg);
  }
 finally {
    if (fileistr != null) {
      try {
        fileistr.close();
      }
 catch (      IOException e) {
      }
    }
  }
}

protected Properties loadProperties ( File filehandle , String objName ) throws SMSException { FileInputStream fileistr = null ; try { fileistr = new FileInputStream ( filehandle ) ; Properties props = new CaseInsensitiveProperties ( ) ; props . load ( fileistr ) ; return props ; } catch ( FileNotFoundException e ) { String errmsg = "SMSFlatFileObject.loadProperties: " + objName + " File, " + filehandle . getPath ( ) + e . getMessage ( ) ; mDebug . error ( "SMSFlatFileObject.loadProperties" , e ) ; throw new ServiceNotFoundException ( errmsg ) ; } catch ( IOException e ) { String errmsg = "SMSFlatFileObject.loadProperties: " + objName + " File, " + filehandle . getPath ( ) + e . getMessage ( ) ; mDebug . error ( "SMSFlatFileObject.loadProperties" , e ) ; throw new ServiceNotFoundException ( errmsg ) ; } catch ( IllegalArgumentException e ) { String errmsg = "SMSFlatFileObject.loadProperties: " + objName + " File, " + filehandle . getPath ( ) + e . getMessage ( ) ; mDebug . error ( "SMSFlatFileObject.loadProperties" , e ) ; throw new ServiceNotFoundException ( errmsg ) ; } finally { if ( fileistr != null ) { try { fileistr . close ( ) ; } catch ( IOException e ) { } } } }
loads properties from the attribute file handle .
