Write an entry to the archive. This method will call the putNextEntry and then write the contents of the entry, and finally call closeEntry() for entries that are files. For directories, it will call putNextEntry(), and then, if the recurse flag is true, process each entry that is a child of the directory.
Parameters
- sourceEntry
- The TarEntry representing the entry to write to the archive.
- recurse
- If true, process the children of directory entries.