EggArchive.EggArchive
EggArchive(Stream, EggArchiveLoadOptions)
Initializes a new instance of the EggArchive class from a stream.
public EggArchive(Stream stream, EggArchiveLoadOptions loadOptions = null)
| Parameter | Type | Description |
|---|
| stream | Stream | The EGG archive stream. The stream must support reading and seeking. |
| loadOptions | EggArchiveLoadOptions | Options to load the archive with. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| ArgumentException | stream is not readable and seekable. |
See Also
EggArchive(string, EggArchiveLoadOptions)
Initializes a new instance of the EggArchive class from a file path.
public EggArchive(string path, EggArchiveLoadOptions loadOptions = null)
| Parameter | Type | Description |
|---|
| path | String | Path to the EGG archive file. |
| loadOptions | EggArchiveLoadOptions | Options to load the archive with. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | path is null. |
| FileNotFoundException | The file does not exist. |
| 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. |
See Also