GetArchive

ArchiveFactory.GetArchive method (1 of 2)

Detects the archive format and creates the appropriate IArchive object according to the type of archive specified by the given path.

public static IArchive GetArchive(string path)
ParameterTypeDescription
pathStringThe path to the archive to be analyzed.

Return Value

An IArchive object representing the archive.

See Also


ArchiveFactory.GetArchive method (2 of 2)

Detects the archive format and creates the appropriate IArchive object according to the type of archive specified by the given stream.

public static IArchive GetArchive(Stream stream)
ParameterTypeDescription
streamStreamThe stream containing the archive data. It must bee seekable.

Return Value

An IArchive object representing the archive.

See Also