TarWriter Class

Definition

Writes a tar archive into a stream.

public ref class TarWriter sealed : IAsyncDisposable, IDisposable
public sealed class TarWriter : IAsyncDisposable, IDisposable
type TarWriter = class
    interface IAsyncDisposable
    interface IDisposable
Public NotInheritable Class TarWriter
Implements IAsyncDisposable, IDisposable
Inheritance
TarWriter
Implements

Constructors

TarWriter(Stream)

Initializes a TarWriter instance that can write tar entries to the specified stream and closes the archiveStream upon disposal of this instance.

TarWriter(Stream, Boolean)

Initializes a TarWriter instance that can write tar entries to the specified stream and optionally leaves the stream open upon disposal of this instance. When using this constructor, the format of the resulting archive is Pax.

TarWriter(Stream, TarEntryFormat, Boolean)

Initializes a TarWriter instance that can write tar entries to the specified stream, optionally leaving the stream open upon disposal of this instance, and optionally specifying the format when writing entries using the WriteEntry(String, String) method.

Properties

Format

Gets the format of the entries when writing them to the archive using the WriteEntry(String, String) method.

Methods

Dispose()

Disposes the current TarWriter instance, and closes the archive stream if the leaveOpen argument was set to false in the constructor.

DisposeAsync()

Asynchronously disposes the current TarWriter instance, and closes the archive stream if the leaveOpen argument was set to false in the constructor.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteEntry(String, String)

Writes the specified file into the archive stream as a tar entry.

WriteEntry(TarEntry)

Writes the specified entry into the archive stream.

WriteEntryAsync(String, String, CancellationToken)

Asynchronously writes the specified file into the archive stream as a tar entry.

WriteEntryAsync(TarEntry, CancellationToken)

Asynchronously writes the specified entry into the archive stream.

Extension Methods

ConfigureAwait(IAsyncDisposable, Boolean)

Configures how awaits on the tasks returned from an async disposable are performed.

Applies to