ArchiveFactory.GetArchive
Contents
[
Hide
]GetArchive(string)
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)
Parameter | Type | Description |
---|---|---|
path | String | The path to the archive to be analyzed. |
Return Value
An IArchive
object representing the archive.
See Also
- interface IArchive
- class ArchiveFactory
- namespace Aspose.Zip
- assembly Aspose.Zip
GetArchive(Stream)
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)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream containing the archive data. It must be seekable. |
Return Value
An IArchive
object representing the archive.
See Also
- interface IArchive
- class ArchiveFactory
- namespace Aspose.Zip
- assembly Aspose.Zip
GetArchive(Stream, string)
Detects the archive format and creates the appropriate IArchive
object according to the type of encrypted archive specified by the given stream.
public static IArchive GetArchive(Stream stream, string password)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream containing the archive data. It must be seekable. |
password | String | Password to decrypt encrypted archive. |
Return Value
An IArchive
object representing the archive.
See Also
- interface IArchive
- class ArchiveFactory
- namespace Aspose.Zip
- assembly Aspose.Zip