code: public void extractContents(File destDir) throws IOException {
          for (;;) {
              TarEntry entry = this.tarIn.getNextEntry();
  
              if (entry == null) {
                  if (this.debug) {
                      System.err.println("READ EOF RECORD");
                  }
                  break;
              }
  
              this.extractEntry(destDir, entry);
          }
      }
docs: Perform the "extract" command and extract the contents of the archive.
  
  @param destDir
  The destination directory into which to extract.