FromLZip

TarArchive.FromLZip method (1 of 2)

Extracts supplied lzip archive and composes TarArchive from extracted data.

Important: lzip archive is fully extracted within this method, its content is kept internally. Beware of memory consumption.

public static TarArchive FromLZip(Stream source)
ParameterTypeDescription
sourceStreamThe source of the archive.

Return Value

An instance of TarArchive

Remarks

Lzip extraction stream is not seekable by the nature of compression algorithm. Tar archive provides facility to extract arbitrary record, so it has to operate seekable stream under the hood.

See Also


TarArchive.FromLZip method (2 of 2)

Extracts supplied lzip archive and composes TarArchive from extracted data.

Important: lzip archive is fully extracted within this method, its content is kept internally. Beware of memory consumption.

public static TarArchive FromLZip(string path)
ParameterTypeDescription
pathStringThe path to the archive file.

Return Value

An instance of TarArchive

Remarks

Lzip extraction stream is not seekable by the nature of compression algorithm. Tar archive provides facility to extract arbitrary record, so it has to operate seekable stream under the hood.

See Also