public boolean zip(String zipLocation,String toBeZippedName){
  boolean ret=false;
  if (verbose)   Debug.put("zip");
  File toBeZipped=new File(toBeZippedName);
  if (toBeZipped.exists()) {
    try {
      FileUtils.saveZipFile(zipLocation,toBeZipped);
      ret=true;
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return ret;
}

public boolean zip ( String zipLocation , String toBeZippedName ) { boolean ret = false ; if ( verbose ) Debug . put ( "zip" ) ; File toBeZipped = new File ( toBeZippedName ) ; if ( toBeZipped . exists ( ) ) { try { FileUtils . saveZipFile ( zipLocation , toBeZipped ) ; ret = true ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } return ret ; }
store the contents of the tobezippedname directory into a zip file with the provided name . if the zip file name doesn ' t end in . zip , it will .
