tarWriterWith function

StreamTransformer<TarEntry, List<int>> tarWriterWith({
  1. OutputFormat format = OutputFormat.pax,
})

Creates a stream transformer writing tar entries as byte streams, with custom encoding options.

The format OutputFormat can be used to select the way tar entries with long file or link names are written. By default, the writer will emit an extended PAX header for the file (OutputFormat.pax). Alternatively, OutputFormat.gnuLongName can be used to emit special tar entries with the TypeFlag.gnuLongName type.

Regardless of the input stream, the stream returned by this StreamTransformer.bind is a single-subscription stream. Apart from that, subscriptions, cancellations, pauses and resumes are propagated as one would expect from a StreamTransformer.

When using the default options, prefer using the constant tarWriter instead.

Implementation

StreamTransformer<TarEntry, List<int>> tarWriterWith(
    {OutputFormat format = OutputFormat.pax}) {
  return _WritingTransformer(format);
}