Property | Type | Description | |
---|---|---|---|
KeysRequired | KeysRequiredEventHandler |
Method | Description | |
---|---|---|
AbortUpdate ( ) : void |
Abort updating leaving the archive unchanged.
|
|
Add ( IStaticDataSource dataSource, string entryName ) : void |
Add a file entry with data.
|
|
Add ( IStaticDataSource dataSource, string entryName, CompressionMethod compressionMethod ) : void |
Add a file entry with data.
|
|
Add ( IStaticDataSource dataSource, string entryName, CompressionMethod compressionMethod, bool useUnicodeText ) : void |
Add a file entry with data.
|
|
Add ( |
Add a ZipEntry that contains no data. This can be used to add directories, volume labels, or empty file entries. |
|
Add ( string fileName ) : void |
Add a file to the archive.
|
|
Add ( string fileName, CompressionMethod compressionMethod ) : void |
Add a new entry to the archive.
|
|
Add ( string fileName, CompressionMethod compressionMethod, bool useUnicodeText ) : void |
Add a new entry to the archive.
|
|
Add ( string fileName, string entryName ) : void |
Add a file to the archive.
|
|
AddDirectory ( string directoryName ) : void |
Add a directory entry to the archive.
|
|
BeginUpdate ( ) : void |
Begin updating this ZipFile archive.
|
|
BeginUpdate ( IArchiveStorage archiveStorage ) : void |
Begin updating to this ZipFile archive.
|
|
BeginUpdate ( IArchiveStorage archiveStorage, IDynamicDataSource dataSource ) : void |
Begin updating this ZipFile archive.
|
|
Close ( ) : void |
Closes the ZipFile. If the stream is
|
|
CommitUpdate ( ) : void |
Commit current updates, updating this archive.
|
|
Create ( Stream outStream ) : |
Create a new ZipFile whose data will be stored on a stream.
|
|
Create ( string fileName ) : |
Create a new ZipFile whose data will be stored in a file.
|
|
Delete ( string fileName ) : bool |
Delete an entry by name
|
|
Delete ( |
Delete a ZipEntry from the archive.
|
|
Dispose ( ) : void | ||
FindEntry ( string name, bool ignoreCase ) : int |
Return the index of the entry with a matching name
|
|
GetEntry ( string name ) : |
Searches for a zip entry in this archive with the given name. String comparisons are case insensitive
|
|
GetEnumerator ( ) : IEnumerator |
Gets an enumerator for the Zip entries in this Zip file.
|
|
GetInputStream ( |
Gets an input stream for reading the given zip entry data in an uncompressed form. Normally the ZipEntry should be an entry returned by GetEntry().
|
|
GetInputStream ( long entryIndex ) : Stream |
Creates an input stream reading a zip entry
|
|
SetComment ( string comment ) : void |
Set the file comment to be recorded when the current update is
|
|
TestArchive ( bool testData ) : bool |
Test an archive for integrity/validity Testing will terminate on the first error found. |
|
TestArchive ( bool testData, TestStrategy strategy, ZipTestResultHandler resultHandler ) : bool |
Test an archive for integrity/validity
|
|
ZipFile ( |
Opens a Zip file reading the given FileStream.
|
|
ZipFile ( Stream stream ) : System |
Opens a Zip file reading the given Stream.
|
|
ZipFile ( string name ) : System |
Opens a Zip file with the given name for reading.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the this instance and optionally releases the managed resources.
|
Method | Description | |
---|---|---|
AddEntry ( |
||
AddUpdate ( ZipUpdate update ) : void | ||
CheckClassicPassword ( |
||
CheckUpdating ( ) : void | ||
CopyBytes ( ZipUpdate update, Stream destination, Stream source, long bytesToCopy, bool updateCrc ) : void | ||
CopyDescriptorBytes ( ZipUpdate update, Stream dest, Stream source ) : void | ||
CopyDescriptorBytesDirect ( ZipUpdate update, Stream stream, long &destinationPosition, long sourcePosition ) : void | ||
CopyEntry ( |
||
CopyEntryDataDirect ( ZipUpdate update, Stream stream, bool updateCrc, long &destinationPosition, long &sourcePosition ) : void | ||
CopyEntryDirect ( |
||
CreateAndInitDecryptionStream ( Stream baseStream, |
||
CreateAndInitEncryptionStream ( Stream baseStream, |
||
DisposeInternal ( bool disposing ) : void | ||
FindExistingUpdate ( |
||
FindExistingUpdate ( string fileName ) : int | ||
GetBuffer ( ) : byte[] |
Get a raw memory buffer.
|
|
GetDescriptorSize ( ZipUpdate update ) : int |
Get the size of the source descriptor for a ZipUpdate.
|
|
GetOutputStream ( |
Get an output stream for the specified ZipEntry
|
|
GetTransformedDirectoryName ( string name ) : string | ||
GetTransformedFileName ( string name ) : string | ||
LocateBlockWithSignature ( int signature, long endLocation, int minimumBlockSize, int maximumVariableData ) : long | ||
LocateEntry ( |
Locate the data for a given entry.
|
|
ModifyEntry ( |
||
OnKeysRequired ( string fileName ) : void |
Handles getting of encryption keys when required.
|
|
PostUpdateCleanup ( ) : void | ||
ReadEntries ( ) : void |
Search for and read the central directory of a zip file filling the entries array.
|
|
ReadLEUint ( ) : uint |
Read a uint in little endian byte order.
|
|
ReadLEUlong ( ) : ulong | ||
ReadLEUshort ( ) : ushort |
Read an unsigned short in little endian byte order.
|
|
Reopen ( ) : void | ||
Reopen ( Stream source ) : void | ||
RunUpdates ( ) : void | ||
TestLocalHeader ( |
Test a local header against that provided from the central directory
|
|
UpdateCommentOnly ( ) : void | ||
UpdateComparer ( ZipUpdate zx, ZipUpdate zy ) : int |
Compares two objects and returns a value indicating whether one is less than, equal to or greater than the other.
|
|
WriteCentralDirectoryHeader ( |
||
WriteEncryptionHeader ( Stream stream, long crcValue ) : void | ||
WriteLEInt ( int value ) : void |
Write an int in little endian byte order.
|
|
WriteLEShort ( int value ) : void | ||
WriteLEUint ( uint value ) : void |
Write an unsigned int in little endian byte order.
|
|
WriteLEUlong ( ulong value ) : void | ||
WriteLEUshort ( ushort value ) : void |
Write an unsigned short in little endian byte order.
|
|
WriteLeLong ( long value ) : void |
Write a long in little endian byte order.
|
|
WriteLocalEntryHeader ( ZipUpdate update ) : void | ||
ZipFile ( ) : System |
Initialises a default ZipFile instance with no entries and no file storage.
|
|
this ( int index ) : |
public Add ( IStaticDataSource dataSource, string entryName ) : void | ||
dataSource | IStaticDataSource | The source of the data for this entry. |
entryName | string | The name to give to the entry. |
return | void |
public Add ( IStaticDataSource dataSource, string entryName, CompressionMethod compressionMethod ) : void | ||
dataSource | IStaticDataSource | The source of the data for this entry. |
entryName | string | The name to give to the entry. |
compressionMethod | CompressionMethod | The compression method to use. |
return | void |
public Add ( IStaticDataSource dataSource, string entryName, CompressionMethod compressionMethod, bool useUnicodeText ) : void | ||
dataSource | IStaticDataSource | The source of the data for this entry. |
entryName | string | The name to give to the entry. |
compressionMethod | CompressionMethod | The compression method to use. |
useUnicodeText | bool | Ensure Unicode text is used for name and comments for this entry. |
return | void |
public Add ( |
||
entry | The entry to add. | |
return | void |
public Add ( string fileName ) : void | ||
fileName | string | The name of the file to add. |
return | void |
public Add ( string fileName, CompressionMethod compressionMethod ) : void | ||
fileName | string | The name of the file to add. |
compressionMethod | CompressionMethod | The compression method to use. |
return | void |
public Add ( string fileName, CompressionMethod compressionMethod, bool useUnicodeText ) : void | ||
fileName | string | The name of the file to add. |
compressionMethod | CompressionMethod | The compression method to use. |
useUnicodeText | bool | Ensure Unicode text is used for name and comment for this entry. |
return | void |
public Add ( string fileName, string entryName ) : void | ||
fileName | string | The name of the file to add. |
entryName | string | The name to use for the |
return | void |
public AddDirectory ( string directoryName ) : void | ||
directoryName | string | The directory to add. |
return | void |
public BeginUpdate ( IArchiveStorage archiveStorage ) : void | ||
archiveStorage | IArchiveStorage | The storage to use during the update. |
return | void |
public BeginUpdate ( IArchiveStorage archiveStorage, IDynamicDataSource dataSource ) : void | ||
archiveStorage | IArchiveStorage | The |
dataSource | IDynamicDataSource | The |
return | void |
public static Create ( Stream outStream ) : |
||
outStream | Stream | The stream providing data storage. |
return |
public static Create ( string fileName ) : |
||
fileName | string | The name of the archive to create. |
return |
public Delete ( string fileName ) : bool | ||
fileName | string | The filename to delete |
return | bool |
public Delete ( |
||
entry | The entry to delete. | |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; /// false to release only unmanaged resources. |
return | void |
public FindEntry ( string name, bool ignoreCase ) : int | ||
name | string | Entry name to find |
ignoreCase | bool | If true the comparison is case insensitive |
return | int |
public GetEntry ( string name ) : |
||
name | string | /// The name to find. May contain directory components separated by slashes ('/'). /// |
return |
public GetInputStream ( |
||
entry | The |
|
return | Stream |
public GetInputStream ( long entryIndex ) : Stream | ||
entryIndex | long | The index of the entry to obtain an input stream for. |
return | Stream |
public SetComment ( string comment ) : void | ||
comment | string | The comment to record. |
return | void |
public TestArchive ( bool testData ) : bool | ||
testData | bool | Perform low level data Crc check |
return | bool |
public TestArchive ( bool testData, TestStrategy strategy, ZipTestResultHandler resultHandler ) : bool | ||
testData | bool | Perform low level data Crc check |
strategy | TestStrategy | The |
resultHandler | ZipTestResultHandler | The |
return | bool |
public ZipFile ( |
||
file | The |
|
return | System |
public ZipFile ( Stream stream ) : System | ||
stream | Stream | The |
return | System |
public ZipFile ( string name ) : System | ||
name | string | The name of the file to open. |
return | System |