public void zipFile(String entryPath, File file) throws IOException {
    if (file.isDirectory()) {
      throw new IllegalArgumentException("Doesn't make sense");
    }
    try (InputStream from = new BufferedInputStream(new FileInputStream(file))) {
      zipEntry(new ZipEntry(entryPath), from);
    }
  }
public void zipFile(String entryPath, File file)