CpioArchive

CpioArchive class

This class represents cpio archive file.

public class CpioArchive : IArchive

Constructors

NameDescription
CpioArchive()Initializes a new instance of the CpioArchive class.
CpioArchive(Stream)Initializes a new instance of the CpioArchive class and composes entries list can be extracted from the archive.
CpioArchive(string)Initializes a new instance of the CpioArchive class and composes entries list can be extracted from the archive.

Properties

NameDescription
Entries { get; }Gets entries of CpioEntry type constituting the archive.

Methods

NameDescription
CreateEntries(DirectoryInfo, bool)Adds to the archive all the files and directories recursively in the directory given.
CreateEntries(string, bool)Adds to the archive all the files and directories recursively in the directory given.
CreateEntry(string, Stream)Create single entry within the archive.
CreateEntry(string, FileInfo, bool)Create single entry within the archive.
CreateEntry(string, string, bool)Create single entry within the archive.
DeleteEntry(CpioEntry)Removes the first occurrence of a specific entry from the entries list.
DeleteEntry(int)Removes the entry from the entries list by index.
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ExtractToDirectory(string)Extracts all the files in the archive to the directory provided.
Save(Stream, CpioFormat)Saves archive to the stream provided.
Save(string, CpioFormat)Saves archive to destination file provided.
SaveGzipped(Stream, CpioFormat)Saves archive to the stream with gzip compression.
SaveGzipped(string, CpioFormat)Saves archive to the file by path with gzip compression.
SaveLzipped(Stream, CpioFormat)Saves archive to the stream with lzip compression.
SaveLzipped(string, CpioFormat)Saves archive to the file by path with lzip compression.
SaveLZMACompressed(Stream, CpioFormat)Saves the archive to the stream with LZMA compression.
SaveLZMACompressed(string, CpioFormat)Saves the archive to the file by path with lzma compression.
SaveXzCompressed(Stream, CpioFormat, XzArchiveSettings)Saves archive to the stream with xz compression.
SaveXzCompressed(string, CpioFormat, XzArchiveSettings)Saves archive to the path by path with xz compression.
SaveZCompressed(Stream, CpioFormat)Saves archive to the stream with Z compression.
SaveZCompressed(string, CpioFormat)Saves archive to the path by path with Z compression.
SaveZstandard(Stream, CpioFormat)Saves archive to the stream with Zstandard compression.
SaveZstandard(string, CpioFormat)Saves archive to the file by path with Zstandard compression.

See Also