protected void saveProperties(Properties props,File filehandle,String header) throws SMSException {
  FileOutputStream fileostr=null;
  try {
    fileostr=new FileOutputStream(filehandle);
    props.store(fileostr,header);
  }
 catch (  FileNotFoundException e) {
    String errmsg="SMSFlatFileObjectBase.saveProperties: " + (header == null ? "" : header + ": ") + " File, "+ filehandle.getPath()+ ". Exception: "+ e.getMessage();
    mDebug.error("SMSFlatFileObjectBase.saveProperties",e);
    throw new ServiceNotFoundException(errmsg);
  }
catch (  IOException e) {
    String errmsg="SMSFlatFileObjectBase.saveProperties: " + (header == null ? "" : header + ": ") + " File, "+ filehandle.getPath()+ ". Exception: "+ e.getMessage();
    mDebug.error("SMSFlatFileObjectBase.saveProperties",e);
    throw new ServiceNotFoundException(errmsg);
  }
 finally {
    try {
      fileostr.close();
    }
 catch (    IOException e) {
    }
  }
}

protected void saveProperties ( Properties props , File filehandle , String header ) throws SMSException { FileOutputStream fileostr = null ; try { fileostr = new FileOutputStream ( filehandle ) ; props . store ( fileostr , header ) ; } catch ( FileNotFoundException e ) { String errmsg = "SMSFlatFileObjectBase.saveProperties: " + ( header == null ? "" : header + ": " ) + " File, " + filehandle . getPath ( ) + ". Exception: " + e . getMessage ( ) ; mDebug . error ( "SMSFlatFileObjectBase.saveProperties" , e ) ; throw new ServiceNotFoundException ( errmsg ) ; } catch ( IOException e ) { String errmsg = "SMSFlatFileObjectBase.saveProperties: " + ( header == null ? "" : header + ": " ) + " File, " + filehandle . getPath ( ) + ". Exception: " + e . getMessage ( ) ; mDebug . error ( "SMSFlatFileObjectBase.saveProperties" , e ) ; throw new ServiceNotFoundException ( errmsg ) ; } finally { try { fileostr . close ( ) ; } catch ( IOException e ) { } } }
saves properties to the attributes file handle , with given objname in the file header .
