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

Builds a ZIP archive (.zip). More...

Inheritance diagram for ZeroInstall.Archives.Builders.ZipBuilder:
ZeroInstall.Archives.Builders.IArchiveBuilder ZeroInstall.Store.FileSystem.IForwardOnlyBuilder

Public Member Functions

 ZipBuilder (Stream stream)
 Creates a ZIP 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 ZIP archive (.zip).

Constructor & Destructor Documentation

◆ ZipBuilder()

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

Creates a ZIP 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.ZipBuilder.AddDirectory ( string  path)
inline

Adds a subdirectory to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddFile()

void ZeroInstall.Archives.Builders.ZipBuilder.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.ZipBuilder.AddHardlink ( string  path,
string  target,
bool  executable = false 
)

Adds a hardlink to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddSymlink()

void ZeroInstall.Archives.Builders.ZipBuilder.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: