code: public void writeEntry(String entryName, InputStream inputStream) throws IOException {
          JarEntry entry = new JarEntry(entryName);
          writeEntry(entry, new InputStreamEntryWriter(inputStream, true));
      }
docs: Writes an entry. The {@code inputStream} is closed once the entry has been written
  
  @param entryName   The name of the entry
  @param inputStream The stream from which the entry's data can be read
  @throws IOException if the write fails