LzipArchive.LzipArchive
Contents
[
Hide
]LzipArchive(LzipArchiveSettings)
Initializes a new instance of the LzipArchive
.
public LzipArchive(LzipArchiveSettings settings = null)
Parameter | Type | Description |
---|---|---|
settings | LzipArchiveSettings | Setting of particular lzip archive with definition of dictionary size. |
See Also
- class LzipArchiveSettings
- class LzipArchive
- namespace Aspose.Zip.Lzip
- assembly Aspose.Zip
LzipArchive(Stream)
Initializes a new instance of the LzipArchive
class prepared for decompressing.
public LzipArchive(Stream sourceStream)
Parameter | Type | Description |
---|---|---|
sourceStream | Stream | The source of the archive. |
Exceptions
exception | condition |
---|---|
ArgumentException | sourceStream is not seekable. |
ArgumentNullException | sourceStream is null. |
InvalidDataException | Headers do not match lzip type of archive. |
Remarks
This constructor does not decompress. See Extract
method for decompressing.
See Also
- class LzipArchive
- namespace Aspose.Zip.Lzip
- assembly Aspose.Zip
LzipArchive(string)
Initializes a new instance of the LzipArchive
class prepared for decompressing.
public LzipArchive(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. |
FileNotFoundException | The file is not found. |
DirectoryNotFoundException | The specified path is invalid, such as being on an unmapped drive. |
IOException | The file is already open. |
InvalidDataException | Headers do not match lzip type of archive. |
Remarks
This constructor does not decompress. See Extract
method for decompressing.
Examples
using (FileStream extractedFile = File.Open(extractedFileName, FileMode.Create))
{
using (var archive = new LzipArchive(sourceLzipFile))
{
archive.Extract(extractedFile);
}
}
See Also
- class LzipArchive
- namespace Aspose.Zip.Lzip
- assembly Aspose.Zip