@Override
  public void close() throws IOException {
    if (myOutputStream != null) {
      if (entries.isEmpty()) {
        JBZipEntry empty = getOrCreateEntry("/empty.file.marker");
        myOutputStream.putNextEntryBytes(empty, "empty".getBytes(StandardCharsets.US_ASCII));
      }

      myOutputStream.finish();
      myArchive.setLength(myOutputStream.getWritten());
    }
    myArchive.close();
  }
@Override
  public void close()