class ZipUtilities {

  @VisibleForTesting
  public static String zipDir(String srcDir, String dstFile)
      throws IOException {
    FileOutputStream fos = new FileOutputStream(dstFile);
    ZipOutputStream zos = new ZipOutputStream(fos);
    File srcFile = new File(srcDir);
    LOG.info("Compressing directory {}", srcDir);
    addDirToZip(zos, srcFile, srcFile);
    zos.close();
    LOG.info("Compressed directory {} to file: {}", srcDir, dstFile);
    return dstFile;
  }

  private  ZipUtilities();

}