TarEntry constructor
Creates a tar entry from a header
and the contents
stream.
If the total length of contents
is known, consider setting the
header
's TarHeader.size property to the appropriate value.
Otherwise, the tar writer needs to buffer contents to determine the right
size.
Implementation
// factory so that this class can't be extended
factory TarEntry(TarHeader header, Stream<List<int>> contents) = TarEntry._;