Свойство | Type | Description | |
---|---|---|---|
KeysRequired | KeysRequiredEventHandler |
Méthode | 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.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the this instance and optionally releases the managed resources.
|
Méthode | 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. |
Résultat | 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. |
Résultat | 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. |
Résultat | void |
public Add ( |
||
entry | The entry to add. | |
Résultat | void |
public Add ( string fileName ) : void | ||
fileName | string | The name of the file to add. |
Résultat | void |
public Add ( string fileName, CompressionMethod compressionMethod ) : void | ||
fileName | string | The name of the file to add. |
compressionMethod | CompressionMethod | The compression method to use. |
Résultat | 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. |
Résultat | 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 |
Résultat | void |
public AddDirectory ( string directoryName ) : void | ||
directoryName | string | The directory to add. |
Résultat | void |
public BeginUpdate ( IArchiveStorage archiveStorage ) : void | ||
archiveStorage | IArchiveStorage | The storage to use during the update. |
Résultat | void |
public BeginUpdate ( IArchiveStorage archiveStorage, IDynamicDataSource dataSource ) : void | ||
archiveStorage | IArchiveStorage | The |
dataSource | IDynamicDataSource | The |
Résultat | void |
public static Create ( Stream outStream ) : |
||
outStream | Stream | The stream providing data storage. |
Résultat |
public static Create ( string fileName ) : |
||
fileName | string | The name of the archive to create. |
Résultat |
public Delete ( string fileName ) : bool | ||
fileName | string | The filename to delete |
Résultat | bool |
public Delete ( |
||
entry | The entry to delete. | |
Résultat | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; /// false to release only unmanaged resources. |
Résultat | void |
public FindEntry ( string name, bool ignoreCase ) : int | ||
name | string | Entry name to find |
ignoreCase | bool | If true the comparison is case insensitive |
Résultat | int |
public GetEntry ( string name ) : |
||
name | string | /// The name to find. May contain directory components separated by slashes ('/'). /// |
Résultat |
public GetInputStream ( |
||
entry | The |
|
Résultat | Stream |
public GetInputStream ( long entryIndex ) : Stream | ||
entryIndex | long | The index of the entry to obtain an input stream for. |
Résultat | Stream |
public SetComment ( string comment ) : void | ||
comment | string | The comment to record. |
Résultat | void |
public TestArchive ( bool testData ) : bool | ||
testData | bool | Perform low level data Crc check |
Résultat | bool |
public TestArchive ( bool testData, TestStrategy strategy, ZipTestResultHandler resultHandler ) : bool | ||
testData | bool | Perform low level data Crc check |
strategy | TestStrategy | The |
resultHandler | ZipTestResultHandler | The |
Résultat | bool |
public ZipFile ( |
||
file | The |
|
Résultat | System |
public ZipFile ( Stream stream ) : System | ||
stream | Stream | The |
Résultat | System |
public ZipFile ( string name ) : System | ||
name | string | The name of the file to open. |
Résultat | System |