Property | Type | Description | |
---|---|---|---|
SetupStream | void | ||
_Init | void |
Method | Description | |
---|---|---|
Flush ( ) : void |
This is a no-op.
|
|
GetNextEntry ( ) : |
Read the next entry from the zip file. Call this method just before calling Read(byte[], int, int), to position the pointer in the zip file to the next entry that can be read. Subsequent calls to Each time you call This method returns the |
|
Read ( byte buffer, int offset, int count ) : int |
Read the data from the stream into the buffer. The data for the zipentry will be decrypted and uncompressed, as necessary, before being copied into the buffer. You must set the Password property before calling |
|
Seek ( long offset, SeekOrigin origin ) : long |
This method seeks in the underlying stream. Call this method if you want to seek around within the zip file for random access. Applications can intermix calls to |
|
SetLength ( long value ) : void |
This method always throws a NotSupportedException.
|
|
ToString ( ) : String |
Provides a string representation of the instance. This can be useful for debugging purposes. |
|
Write ( byte buffer, int offset, int count ) : void |
This method always throws a NotSupportedException.
|
|
ZipInputStream ( Stream stream ) : System |
Create a While the ZipFile class is generally easier to use, this class provides an alternative to those applications that want to read from a zipfile directly, using a System.IO.Stream. Both the Aside from the obvious differences in programming model, there are some differences in capability between the
|
|
ZipInputStream ( Stream stream, bool leaveOpen ) : System |
Create a See the documentation for the |
|
ZipInputStream ( String fileName ) : System |
Create a This constructor opens a While the ZipFile class is generally easier to use, this class provides an alternative to those applications that want to read from a zipfile directly, using a System.IO.Stream. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the stream. This method disposes the ZipInputStream. It may also close the underlying stream, depending on which constructor was used. Typically the application will call Application code won't call this code directly. This method may be invoked in two distinct scenarios. If disposing == true, the method has been called directly or indirectly by a user's code, for example via the public Dispose() method. In this case, both managed and unmanaged resources can be referenced and disposed. If disposing == false, the method has been called by the runtime from inside the object finalizer and this method should not reference other objects; in that case only unmanaged resources must be referenced or disposed. |
Method | Description | |
---|---|---|
SetupStream ( ) : void | ||
_Init ( Stream stream, bool leaveOpen, string name ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// true if the Dispose method was invoked by user code. /// |
return | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer to hold the data read from the stream. |
offset | int | the offset within the buffer to copy the first byte read. |
count | int | the number of bytes to read. |
return | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | the offset point to seek to |
origin | SeekOrigin | the reference point from which to seek |
return | long |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | ignored |
offset | int | ignored |
count | int | ignored |
return | void |
public ZipInputStream ( Stream stream ) : System | ||
stream | Stream |
/// The stream to read. It must be readable. This stream will be closed at
/// the time the |
return | System |
public ZipInputStream ( Stream stream, bool leaveOpen ) : System | ||
stream | Stream | /// The stream to read from. It must be readable. /// |
leaveOpen | bool |
/// true if the application would like the stream
/// to remain open after the |
return | System |
public ZipInputStream ( String fileName ) : System | ||
fileName | String | /// The name of the filesystem file to read. /// |
return | System |