contents property

Stream<List<int>> contents
final

The content stream of the active tar entry.

For tar entries read through the reader provided by this library, contents is a single-subscription streamed backed by the original stream used to create the reader. When listening on contents, the stream needs to be fully drained before the next call to StreamIterator.moveNext. It's acceptable to not listen to contents at all before calling StreamIterator.moveNext again. In that case, this library will take care of draining the stream to get to the next entry.

Implementation

final Stream<List<int>> contents;