AppleArchiveEntry.Extract
Contents
[
Hide
]Extract(string)
Extracts the entry to the filesystem by the path provided.
public FileInfo Extract(string path)
| Parameter | Type | Description |
|---|---|---|
| path | String | The path to destination file. If the file already exists, it will be overwritten. |
Return Value
The file info of a composed file.
Exceptions
| exception | condition |
|---|---|
| InvalidDataException | The checksum or digest stored for the entry does not match the extracted data. |
| InvalidOperationException | The entry belongs to an archive prepared for composition, or the entry data cannot be opened from a non-seekable archive stream. |
| NotSupportedException | The entry belongs to a solid Apple Archive or uses an unsupported compression method. |
| ObjectDisposedException | The source stream has been disposed. |
| IOException | An I/O error occurs. |
See Also
- class AppleArchiveEntry
- namespace Aspose.Zip.Apple
- assembly Aspose.Zip
Extract(Stream)
Extracts the entry to the stream provided.
public void Extract(Stream destination)
| Parameter | Type | Description |
|---|---|---|
| destination | Stream | Destination stream. Must be writable. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | destination is null. |
| ArgumentException | destination does not support writing. |
| InvalidDataException | The checksum or digest stored for the entry does not match the extracted data. |
| InvalidOperationException | The entry belongs to an archive prepared for composition, or the entry data cannot be opened from a non-seekable archive stream. |
| NotSupportedException | The entry belongs to a solid Apple Archive or uses an unsupported compression method. |
| ObjectDisposedException | The source stream has been disposed. |
| IOException | An I/O error occurs. |
See Also
- class AppleArchiveEntry
- namespace Aspose.Zip.Apple
- assembly Aspose.Zip