TarWriter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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 |
DisposeAsync() |
Asynchronously disposes the current TarWriter instance, and closes the archive stream if the |
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 will be performed. |