LzmaArchive.LzmaArchive
Contents
[
Hide
]LzmaArchive(LzmaArchiveSettings)
Initializes a new instance of the LzmaArchive
class and composes the archive in lzma format.
public LzmaArchive(LzmaArchiveSettings settings = null)
Parameter | Type | Description |
---|---|---|
settings | LzmaArchiveSettings | Set of setting particular lzma archive. |
See Also
- class LzmaArchiveSettings
- class LzmaArchive
- namespace Aspose.Zip.LZMA
- assembly Aspose.Zip
LzmaArchive(Stream)
Initializes a new instance of the LzmaArchive
class prepared for decompressing.
public LzmaArchive(Stream source)
Parameter | Type | Description |
---|---|---|
source | Stream | The source of the archive. |
Exceptions
exception | condition |
---|---|
ArgumentException | source is not seekable. |
ArgumentNullException | source is null. |
Remarks
This constructor does not decompress. See Extract
method for decompressing.
See Also
- class LzmaArchive
- namespace Aspose.Zip.LZMA
- assembly Aspose.Zip
LzmaArchive(string)
Initializes a new instance of the LzmaArchive
class prepared for decompressing.
public LzmaArchive(string path)
Parameter | Type | Description |
---|---|---|
path | String | Path to the source of the archive. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | path is null. |
SecurityException | The caller does not have the required permission to access. |
ArgumentException | The path is empty, contains only white spaces, or contains invalid characters. |
UnauthorizedAccessException | Access to file path is denied. |
PathTooLongException | The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
NotSupportedException | File at path contains a colon (:) in the middle of the string. |
Remarks
This constructor does not decompress. See Extract
method for decompressing.
Examples
using (FileStream extractedFile = File.Open(extractedFileName, FileMode.Create))
{
using (var archive = new LzmaArchive(sourceLzmaFile))
{
archive.Extract(extractedFile);
}
}
See Also
- class LzmaArchive
- namespace Aspose.Zip.LZMA
- assembly Aspose.Zip