code: public void close() throws IOException {
          if (jarOutputStream != null) {
              jarOutputStream.close();
          }
          else if (os != null) {
              os.close();
          }
      }
docs: Closes the archive and releases file system resources. No more files or directories may be
  added after calling this method.
  
  @throws IOException
  on I/O error