프로퍼티 | 타입 | 설명 | |
---|---|---|---|
KeysRequired | KeysRequiredEventHandler |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AddEntry | void | ||
AddUpdate | void | ||
CheckClassicPassword | void | ||
CheckUpdating | void | ||
CopyBytes | void | ||
CopyDescriptorBytes | void | ||
CopyDescriptorBytesDirect | void | ||
CopyEntry | void | ||
CopyEntryDataDirect | void | ||
CopyEntryDirect | void | ||
CreateAndInitDecryptionStream | Stream | ||
CreateAndInitEncryptionStream | Stream | ||
DisposeInternal | void | ||
FindExistingUpdate | int | ||
FindExistingUpdate | int | ||
GetBuffer | byte[] | ||
GetDescriptorSize | int | ||
GetOutputStream | Stream | ||
GetTransformedDirectoryName | string | ||
GetTransformedFileName | string | ||
LocateBlockWithSignature | long | ||
LocateEntry | long | ||
ModifyEntry | void | ||
OnKeysRequired | void | ||
PostUpdateCleanup | void | ||
ReadEntries | void | ||
ReadLEUint | uint | ||
ReadLEUlong | ulong | ||
ReadLEUshort | ushort | ||
Reopen | void | ||
Reopen | void | ||
RunUpdates | void | ||
TestLocalHeader | long | ||
UpdateCommentOnly | void | ||
UpdateComparer | int | ||
WriteCentralDirectoryHeader | int | ||
WriteEncryptionHeader | void | ||
WriteLEInt | void | ||
WriteLEShort | void | ||
WriteLEUint | void | ||
WriteLEUlong | void | ||
WriteLEUshort | void | ||
WriteLeLong | void | ||
WriteLocalEntryHeader | void | ||
ZipFile | System | ||
this |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the this instance and optionally releases the managed resources.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |
리턴 | 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. |
리턴 | void |
public Add ( string fileName ) : void | ||
fileName | string | The name of the file to add. |
리턴 | void |
public Add ( string fileName, CompressionMethod compressionMethod ) : void | ||
fileName | string | The name of the file to add. |
compressionMethod | CompressionMethod | The compression method to use. |
리턴 | 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. |
리턴 | 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 |
리턴 | void |
public AddDirectory ( string directoryName ) : void | ||
directoryName | string | The directory to add. |
리턴 | void |
public BeginUpdate ( IArchiveStorage archiveStorage ) : void | ||
archiveStorage | IArchiveStorage | The storage to use during the update. |
리턴 | void |
public BeginUpdate ( IArchiveStorage archiveStorage, IDynamicDataSource dataSource ) : void | ||
archiveStorage | IArchiveStorage | The |
dataSource | IDynamicDataSource | The |
리턴 | void |
public static Create ( Stream outStream ) : |
||
outStream | Stream | The stream providing data storage. |
리턴 |
public static Create ( string fileName ) : |
||
fileName | string | The name of the archive to create. |
리턴 |
public Delete ( string fileName ) : bool | ||
fileName | string | The filename to delete |
리턴 | bool |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; /// false to release only unmanaged resources. |
리턴 | void |
public FindEntry ( string name, bool ignoreCase ) : int | ||
name | string | Entry name to find |
ignoreCase | bool | If true the comparison is case insensitive |
리턴 | int |
public GetEntry ( string name ) : |
||
name | string | /// The name to find. May contain directory components separated by slashes ('/'). /// |
리턴 |
public GetInputStream ( |
||
entry | The |
|
리턴 | Stream |
public GetInputStream ( long entryIndex ) : Stream | ||
entryIndex | long | The index of the entry to obtain an input stream for. |
리턴 | Stream |
public SetComment ( string comment ) : void | ||
comment | string | The comment to record. |
리턴 | void |
public TestArchive ( bool testData ) : bool | ||
testData | bool | Perform low level data Crc check |
리턴 | bool |
public TestArchive ( bool testData, TestStrategy strategy, ZipTestResultHandler resultHandler ) : bool | ||
testData | bool | Perform low level data Crc check |
strategy | TestStrategy | The |
resultHandler | ZipTestResultHandler | The |
리턴 | bool |
public ZipFile ( |
||
file | The |
|
리턴 | System |
public ZipFile ( Stream stream ) : System | ||
stream | Stream | The |
리턴 | System |
public ZipFile ( string name ) : System | ||
name | string | The name of the file to open. |
리턴 | System |