Method | Description | |
---|---|---|
CloseEntry ( ) : void |
Closes the current entry, updating header and footer information as required
|
|
Finish ( ) : void |
Finishes the stream. This will write the central directory at the end of the zip file and flush the stream. This is automatically called when the stream is closed. |
|
GetLevel ( ) : int |
Get the current deflater compression level
|
|
PutNextEntry ( |
Starts a new Zip entry. It automatically closes the previous entry if present. All entry elements bar name are optional, but must be correct if present. If the compression method is stored and the output is not patchable the compression for that entry is automatically changed to deflate level 0
|
|
SetComment ( string comment ) : void |
Set the zip file comment.
|
|
SetLevel ( int level ) : void |
Sets the compression level. The new level will be activated immediately.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes the given buffer to the current entry.
|
|
ZipOutputStream ( Stream baseOutputStream ) : System |
Creates a new Zip output stream, writing a zip archive.
|
|
ZipOutputStream ( Stream baseOutputStream, int bufferSize ) : System |
Creates a new Zip output stream, writing a zip archive.
|
Method | Description | |
---|---|---|
AddExtraDataAES ( |
||
CopyAndEncrypt ( byte buffer, int offset, int count ) : void | ||
WriteAESHeader ( |
||
WriteEncryptionHeader ( long crcValue ) : void | ||
WriteLeInt ( int value ) : void |
Write an int in little endian byte order.
|
|
WriteLeLong ( long value ) : void |
Write an int in little endian byte order.
|
|
WriteLeShort ( int value ) : void |
Write an unsigned short in little endian byte order.
|
public PutNextEntry ( |
||
entry | /// the entry. /// | |
return | void |
public SetComment ( string comment ) : void | ||
comment | string | /// The comment text for the entire archive. /// |
return | void |
public SetLevel ( int level ) : void | ||
level | int | The new compression level (1 to 9). |
return | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer containing data to write. |
offset | int | The offset of the first byte to write. |
count | int | The number of bytes to write. |
return | void |
public ZipOutputStream ( Stream baseOutputStream ) : System | ||
baseOutputStream | Stream | /// The output stream to which the archive contents are written. /// |
return | System |
public ZipOutputStream ( Stream baseOutputStream, int bufferSize ) : System | ||
baseOutputStream | Stream | The output stream to which the archive contents are written. |
bufferSize | int | Size of the buffer to use. |
return | System |