XarArchive

XarArchive class

This class represents xar archive file.

public class XarArchive : IArchive

Constructors

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

Properties

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

Methods

NameDescription
CreateEntries(DirectoryInfo, bool, XarCompressionSettings)Adds to the archive all the files and directories recursively in the directory given.
CreateEntries(string, bool, XarCompressionSettings)Adds to the archive all the files and directories recursively in the directory given.
CreateEntry(string, Stream, XarCompressionSettings)Create single entry within the archive.
CreateEntry(string, FileInfo, bool, XarCompressionSettings)Create single entry within the archive.
CreateEntry(string, string, bool, XarCompressionSettings)Create single entry within the archive.
DeleteEntry(XarEntry)Removes the first occurrence of a specific entry from the entries list.
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)Saves archive to the stream provided.
Save(string)Saves archive to destination file provided.

See Also