using a zip archive file as a virtual filesystem
ZipStream
01 Syntax
Microsoft.VisualBasic.ApplicationServices.Zip.ZipStream
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | |
| ToString | 1 | debug view of the stream source |
| GetFileEntry | 1 | |
| OpenFile | 1 | |
| Close | 1 | |
| Flush | 1 | |
| DeleteFile | 1 | |
| FileExists | 1 | |
| FileSize | 1 | |
| GetFullPath | 1 | |
| WriteText | 1 | |
| WriteLines | 1 | |
| ReadLines | 1 | |
| ReadAllText | 1 | |
| GetFiles | 2 | |
| Dispose | 1 | |
| FileModifyTime | 1 | |
| EnumerateFiles | 1 |
03 Properties
04 Members
#ctor(
Stream, Boolean)Parameters
| Name | Type | Description |
|---|---|---|
file | Stream | - |
is_readonly | Boolean | readonly mode just allows for read data from the zip archive file, and set this parameter value to FALSE will enable for create entry inside the file. |
ToString
debug view of the stream source
GetFileEntry(
String, Boolean)Parameters
| Name | Type | Description |
|---|---|---|
path | String | - |
Returns
return nothing if the required archive entry could not be found
OpenFile(
String, FileMode, FileAccess)Remarks
due to the reason of zip deflate stream object does not supports the seek operation, so this function convert the zip deflate stream to a memory stream at first in this function for avoid the downstream operation error when call the stream seek method.
Parameters
| Name | Type | Description |
|---|---|---|
path | String | - |
mode | FileMode | - |
access | FileAccess | - |
filepath
Gets the absolute path of the file opened in the FileStream.
readonly
zip
Close()
Flush()
DeleteFile(
String)FileExists(
String, Boolean)FileSize(
String)GetFullPath(
String)WriteText(
String, String)WriteLines(
IEnumerable(Of String), String)ReadLines(
String)ReadAllText(
String)GetFiles()
Dispose()
FileModifyTime(
String)GetFiles(
String, String())EnumerateFiles(
String, String())