code: public void putNextEntry(TarEntry entry) throws IOException {
          closeCurrentEntry();
  
          byte[] header = new byte[TarConstants.HEADER_BLOCK];
          entry.writeEntryHeader( header );
  
          write( header );
  
          currentEntry = entry;
      }
docs: Writes the next tar entry header on the stream
  
  @throws IOException