code: public void closeArchive() throws IOException {
          if (this.tarIn != null) {
              this.tarIn.close();
          } else if (this.tarOut != null) {
              this.tarOut.close();
          }
      }
docs: Close the archive. This simply calls the underlying tar stream's close() method.