Zero Install .NET API 2.20.0
ZeroInstall.Archives.Builders.TarBuilder Class Reference

Builds a TAR archive (.tar). More...

Inheritance diagram for ZeroInstall.Archives.Builders.TarBuilder:
ZeroInstall.Archives.Builders.IArchiveBuilder ZeroInstall.Store.FileSystem.IForwardOnlyBuilder ZeroInstall.Archives.Builders.TarBz2Builder ZeroInstall.Archives.Builders.TarGzBuilder

Public Member Functions

 TarBuilder (Stream stream)
 Creates a TAR archive builder. More...
 
void Dispose ()
 
void AddDirectory (string path)
 Adds a subdirectory to the implementation. More...
 
void AddFile (string path, Stream stream, UnixTime modifiedTime, bool executable=false)
 Adds a file to the implementation. More...
 
void AddSymlink (string path, string target)
 Adds a symbolic link to the implementation. More...
 
void AddHardlink (string path, string target, bool executable=false)
 Adds a hardlink to the implementation. More...
 

Detailed Description

Builds a TAR archive (.tar).

Constructor & Destructor Documentation

◆ TarBuilder()

ZeroInstall.Archives.Builders.TarBuilder.TarBuilder ( Stream  stream)
inline

Creates a TAR archive builder.

Parameters
streamThe stream to write the archive to. Will be disposed when the builder is disposed.

Member Function Documentation

◆ AddDirectory()

void ZeroInstall.Archives.Builders.TarBuilder.AddDirectory ( string  path)
inline

Adds a subdirectory to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddFile()

void ZeroInstall.Archives.Builders.TarBuilder.AddFile ( string  path,
Stream  stream,
UnixTime  modifiedTime,
bool  executable = false 
)
inline

Adds a file to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddHardlink()

void ZeroInstall.Archives.Builders.TarBuilder.AddHardlink ( string  path,
string  target,
bool  executable = false 
)
inline

Adds a hardlink to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddSymlink()

void ZeroInstall.Archives.Builders.TarBuilder.AddSymlink ( string  path,
string  target 
)
inline

Adds a symbolic link to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.


The documentation for this class was generated from the following file: