[]
Initializes a new instance of the C1ZipFile class.
public C1ZipFile()
Initializes a new instance of the C1ZipFile class and creates or opens a zip file associated with this new instance.
public C1ZipFile(string fileName, bool create)
| Type | Name | Description |
|---|---|---|
| string | fileName | The name of the zip file to open or create. |
| bool | create | True to create a new zip file, false to open an existing file. |
If create is true and the zip file already exists, it is overwritten
with a new empty file.
If create is false and the zip file already exists, the existing file
is opened.
Initializes a new instance of the C1ZipFile class and opens a zip file associated with this new instance.
public C1ZipFile(string fileName)
| Type | Name | Description |
|---|---|---|
| string | fileName | The name of the zip file to open. |
If the file does not exist, a new empty file is created.
Initializes a new instance of the C1ZipFile class and opens a zip stream associated with this new instance.
public C1ZipFile(Stream stream, bool create)
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream that contains the zip data. |
| bool | create | Whether to initialize the stream with an empty zip header or open an existing zip file in the stream. |
Initializes a new instance of the C1ZipFile class and opens a zip stream associated with this new instance.
public C1ZipFile(Stream stream)
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream that contains the zip data. |