docs: private void addFileEntry(String entryName, InputStream inputStream) throws IOException {
  		// write lazily the manifest before adding the first file
  		if (manifest != null) {
  			addManifestEntry();
  		}
  
  		ZipEntry entry = new ZipEntry(entryName);
  		filesArchive.putNextEntry(entry);
  
  		inputStream = new BufferedInputStream(inputStream);
  		try {
  			byte[] buffer = new byte[BUFFER_SIZE];
  			for (;;) {
  				int bytesRead = inputStream.read(buffer);
  				if (bytesRead <= 0) {
  					break;
  				}
  				write(buffer, 0, bytesRead);
  			}
  		} finally {
  			Files.close(inputStream);
  			filesArchive.closeEntry();
  		}
  	}