16 [
Guid(
"ebc25cf6-9120-4283-b972-0e5520d00005")]
127 if (
this[
text] !=
null)
163 return this.
AddEntry(entryName, content, @
default);
244 if (password !=
null)
247 if (!
ze._sourceIsEncrypted)
275 return this.
AddEntry(entryName, content, @
default);
282 return this.
AddEntry(entryName, content, encoding);
289 return this.
AddEntry(entryName, writer);
303 return this.
AddEntry(entryName, stream);
309 bool flag =
string.IsNullOrEmpty(
entryName);
404 if (
"adding" ==
null)
490 if (enumerator ==
null)
496 else if (enumerator !=
null)
507 if (
"{0}: mismatch in Crc32 (0x{1:X4} != 0x{2:X4})" !=
null)
528 if (enumerator !=
null)
552 string text =
string.Format(
" ZipFile: {0}\n", name);
553 bool flag =
string.IsNullOrEmpty(this.
_Comment);
555 string text2 =
string.Format(
" Comment: {0}\n", comment);
831 [
Obsolete(
"Beginning with v1.9.1.6 of DotNetZip, this property is obsolete. It will be removed in a future version of the library. Your applications should use AlternateEncoding and AlternateEncodingUsage instead.")]
910 if (enumerator ==
null)
914 if (enumerator !=
null)
918 if (num != 0
L ||
num2 == 0)
928 [
Obsolete(
"use AlternateEncoding instead.")]
1162 return string.Format(
"ZipFile::{0}", name);
1341 if (
true && caseSensitiveRetrieval)
1367 if (this.<
FullScan>k__BackingField)
1559 while (entry ==
null)
1663 while (
value !=
null)
1688 if (@delegate !=
null && @
delegate ==
null)
1696 if (@delegate !=
null && @
delegate ==
null)
1772 if (@delegate !=
null && @
delegate ==
null)
1780 if (@delegate !=
null && @
delegate ==
null)
1858 if (@delegate !=
null && @
delegate ==
null)
1866 if (@delegate !=
null && @
delegate ==
null)
1961 if (@delegate !=
null && @
delegate ==
null)
1969 if (@delegate !=
null && @
delegate ==
null)
2023 if (@delegate !=
null && @
delegate ==
null)
2031 if (@delegate !=
null && @
delegate ==
null)
2047 if (zipErrorEventArgs.
_cancel)
2080 if (
"Name" !=
null &&
"Name" ==
null)
2084 if (
"Modified" !=
null &&
"Modified" ==
null)
2088 if (
"Size" !=
null &&
"Size" ==
null)
2092 if (
"Ratio" !=
null &&
"Ratio" ==
null)
2096 if (
"Packed" !=
null &&
"Packed" ==
null)
2106 if (password !=
null)
2108 if (password !=
null)
2124 string text = dateTime.
ToString(
"yyyy-MM-dd HH:mm:ss");
2168 while (fileName ==
null)
2311 if (
zf._StatusMessageTextWriter !=
null)
2326 if (
zf._StatusMessageTextWriter !=
null)
2328 bool flag =
string.IsNullOrEmpty(
zf._Comment);
2330 string comment =
zf._Comment;
2331 if (
zf._StatusMessageTextWriter !=
null)
2336 zf.OnReadCompleted();
2343 if (
zf._StatusMessageTextWriter !=
null &&
zf._name !=
null)
2350 if (
zf._StatusMessageTextWriter !=
null)
2377 if (
zf._StatusMessageTextWriter !=
null)
2379 bool flag =
string.IsNullOrEmpty(
zf._Comment);
2383 zf.OnReadCompleted();
2459 if (enumerator !=
null)
2490 if (num == 0 || flag)
2503 if (
"No save is necessary...." !=
null)
2540 if (this.
_name !=
null)
2844 private bool MoveNext()
2875 void IEnumerator.
Reset()
2927 this.<>1__state = num;
class f__AnonymousType0<< Count > j__TPar
static AddProgressEventArgs Started(string archiveName)
static AddProgressEventArgs Completed(string archiveName)
static uint GetAttributes(string lpFileName)
static ReadProgressEventArgs Completed(string archiveName)
static ReadProgressEventArgs Started(string archiveName)
static SaveProgressEventArgs ByteUpdate(string archiveName, ZipEntry entry, long bytesXferred, long totalBytes)
static SaveProgressEventArgs Started(string archiveName)
static SaveProgressEventArgs Completed(string archiveName)
static long GetFileLength(string fileName)
static long FindSignature(Stream stream, int SignatureToFind)
static int ReadSignature(Stream s)
static int ReadInt(Stream s)
static string NormalizePathForUseInZipFile(string pathName)
static ZipEntry CreateFromFile(string filename, string nameInArchive)
static ZipEntry CreateForWriter(string entryName, WriteDelegate d)
static ZipEntry CreateForStream(string entryName, Stream s)
static ZipEntry CreateForJitStreamProvider(string nameInArchive, OpenDelegate opener, CloseDelegate closer)
static ZipEntry CreateFromNothing(string nameInArchive)
string _FileNameInArchive
static string NameInArchive(string filename, string directoryPathInArchive)
static ZipErrorEventArgs Saving(string archiveName, ZipEntry entry, Exception exception)
ExtractExistingFileAction ExtractExistingFile
ZipEntry UpdateEntry(string entryName, string content)
void _InternalExtractAll(string path, bool overrideExtractExistingProperty)
ZipEntry AddItem(string fileOrDirectoryName)
ZipEntry AddOrUpdateDirectoryImpl(string directoryName, string rootDirectoryPathInArchive, AddOrUpdateAction action, bool recurse, int level)
ZipOption _alternateEncodingUsage
void InternalAddEntry(string name, ZipEntry entry)
ZipEntry UpdateFile(string fileName, string directoryPathInArchive)
bool OnSaveBlock(ZipEntry entry, long bytesXferred, long totalBytesToXfer)
ZipEntry AddEntry(string entryName, Stream stream)
static void ReadIntoInstance_Orig(ZipFile zf)
void ExtractAll(string path, ExtractExistingFileAction extractExistingFile)
static ZipFile Read(Stream zipStream, ReadOptions options)
void RemoveEntries(ICollection< string > entriesToRemove)
EventHandler< ReadProgressEventArgs > ReadProgress
ZipEntry UpdateEntry(string entryName, byte[] byteContent)
bool ContainsEntry(string name)
static bool CheckZipPassword(string zipFileName, string password)
ZipEntry UpdateEntry(string entryName, string content, Encoding encoding)
static ZipFile Read(Stream zipStream)
uint _numberOfSegmentsForMostRecentSave
void _InitInstance(string zipFileName, TextWriter statusMessageWriter)
static void ReadZipFileComment(ZipFile zf)
static void FixZipDirectory(string zipFileName)
bool FlattenFoldersOnExtract
ZipFile(string fileName, TextWriter statusMessageWriter, Encoding encoding)
ZipEntry UpdateDirectory(string directoryName)
virtual void Dispose(bool disposeManagedResources)
ZipEntry AddDirectoryByName(string directoryNameInArchive)
bool< FlattenFoldersOnExtract > k__BackingField
static bool CheckZip(string zipFileName)
ZipEntry AddFile(string fileName, string directoryPathInArchive)
void OnSaveEvent(ZipProgressEventType eventFlavor)
void Save(string fileName)
void Save(Stream outputStream)
EventHandler< ExtractProgressEventArgs > ExtractProgress
EventHandler< SaveProgressEventArgs > SaveProgress
Zip64Option UseZip64WhenSaving
bool SortEntriesBeforeSaving
Stream StreamForDiskNumber(uint diskNumber)
static ZipFile Read(Stream zipStream, TextWriter statusMessageWriter, Encoding encoding, EventHandler< ReadProgressEventArgs > readProgress)
void UpdateFiles(IEnumerable< string > fileNames, string directoryPathInArchive)
void RemoveEntries(ICollection< ZipEntry > entriesToRemove)
void NotifyEntryChanged()
ZipEntry AddEntry(string entryName, byte[] byteContent)
int _maxOutputSegmentSize
void _initEntriesDictionary()
static ZipFile Read(string fileName)
bool AddDirectoryWillTraverseReparsePoints
void AddFiles(IEnumerable< string > fileNames, string directoryPathInArchive)
void RemoveEntry(string fileName)
bool< FullScan > k__BackingField
CompressionLevel< CompressionLevel > k__BackingField
void UpdateItem(string itemName)
ZipOption AlternateEncodingUsage
void AddFiles(IEnumerable< string > fileNames, bool preserveDirHierarchy, string directoryPathInArchive)
static readonly int BufferSizeDefault
EncryptionAlgorithm Encryption
ushort _versionNeededToExtract
ZipEntry AddEntry(string entryName, string content)
static Encoding DefaultEncoding
static void Zip64SeekToCentralDirectory(ZipFile zf)
IEnumerator< ZipEntry > GetEnumerator()
void Reset(bool whileSaving)
static bool IsZipFile(string fileName, bool testExtract)
TextWriter StatusMessageTextWriter
ZipFile(Encoding encoding)
ZipFile(string fileName, Encoding encoding)
static uint ReadFirstFourBytes(Stream s)
uint _OffsetOfCentralDirectory
static Version LibraryVersion
ZipEntry AddDirectory(string directoryName, string directoryPathInArchive)
static void ReadCentralDirectoryFooter(ZipFile zf)
EventHandler< ZipErrorEventArgs > ZipError
void RemoveEntry(ZipEntry entry)
ZipEntry UpdateEntry(string entryName, WriteDelegate writer)
static Encoding _defaultEncoding
class< GetEnumerator > IEnumerator
CompressionMethod CompressionMethod
static void ReadIntoInstance(ZipFile zf)
void RemoveEntryForUpdate(string entryName)
override string ToString()
EventHandler< AddProgressEventArgs > AddProgress
bool CaseSensitiveRetrieval
Encoding AlternateEncoding
void ExtractAll(string path)
ZipEntry AddEntry(string entryName, WriteDelegate writer)
TextWriter _StatusMessageTextWriter
void OnExtractAllCompleted(string path)
string _temporaryFileName
bool OnExtractBlock(ZipEntry entry, long bytesWritten, long totalBytesToWrite)
bool _addOperationCanceled
static ZipFile Read(string fileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler< ReadProgressEventArgs > readProgress)
bool OnExtractExisting(ZipEntry entry, string path)
bool EmitTimesInWindowsFormatWhenSaving
Dictionary< string, ZipEntry > _entries
int< CodecBufferSize > k__BackingField
class< GetEnumerator > d__3
void OnExtractEntry(int current, bool before, ZipEntry currentEntry, string path)
void AddFiles(IEnumerable< string > fileNames)
void DeleteFileWithRetry(string filename)
bool UseUnicodeAsNecessary
ZipEntry AddEntry(string entryName, OpenDelegate opener, CloseDelegate closer)
bool< AddDirectoryWillTraverseReparsePoints > k__BackingField
ExtractExistingFileAction< ExtractExistingFile > k__BackingField
static bool IsZipFile(string fileName)
bool< SortEntriesBeforeSaving > k__BackingField
ZipEntry AddItem(string fileOrDirectoryName, string directoryPathInArchive)
ICollection< ZipEntry > EntriesSorted
ZipEntry _InternalAddEntry(ZipEntry ze)
bool OnZipErrorSaving(ZipEntry entry, Exception exc)
string ArchiveNameForEvent
CompressionMethod _compressionMethod
List< ZipEntry > _zipEntriesAsList
ZipFile(string fileName, TextWriter statusMessageWriter)
ZipEntry AddDirectory(string directoryName)
Encoding _alternateEncoding
long _OffsetOfCentralDirectory64
ICollection< string > EntryFileNames
CompressionStrategy Strategy
void UpdateItem(string itemName, string directoryPathInArchive)
void OnReadBytes(ZipEntry entry)
Encoding ProvisionalAlternateEncoding
bool OnSingleEntryExtract(ZipEntry entry, string path, bool before)
void OnSaveEntry(int current, ZipEntry entry, bool before)
bool _extractOperationCanceled
static void NotifyEntriesSaveComplete(ICollection< ZipEntry > c)
ZipEntry AddEntry(string entryName, string content, Encoding encoding)
static ZipFile Read(string fileName, ReadOptions options)
SetCompressionCallback< SetCompression > k__BackingField
EncryptionAlgorithm _Encryption
int NumberOfSegmentsForMostRecentSave
bool _saveOperationCanceled
bool EmitTimesInUnixFormatWhenSaving
List< ZipEntry > ZipEntriesAsList
ZipEntry UpdateDirectory(string directoryName, string directoryPathInArchive)
void OnReadEntry(bool before, ZipEntry entry)
ZipEntry AddOrUpdateDirectoryImpl(string directoryName, string rootDirectoryPathInArchive, AddOrUpdateAction action)
void CleanupAfterSaveOperation()
void UpdateFiles(IEnumerable< string > fileNames)
ICollection< ZipEntry > Entries
void Initialize(string fileName)
static bool IsZipFile(Stream stream, bool testExtract)
ZipEntry UpdateFile(string fileName)
CompressionStrategy _Strategy
bool _CaseSensitiveRetrieval
static bool CheckZip(string zipFileName, bool fixIfNecessary, TextWriter writer)
ZipEntry UpdateEntry(string entryName, OpenDelegate opener, CloseDelegate closer)
SetCompressionCallback SetCompression
ZipErrorAction _zipErrorAction
ZipEntry AddFile(string fileName)
static void ReadCentralDirectory(ZipFile zf)
ZipEntry UpdateEntry(string entryName, Stream stream)
void OnExtractAllStarted(string path)
void AfterAddEntry(ZipEntry entry)
static ZipSegmentedStream ForReading(string name, uint initialDiskNumber, uint maxDiskNumber)
Dictionary< TKey, TValue >.Entry[] _entries
Dictionary< TKey, TValue >.ValueCollection _values
static Delegate Combine(Delegate a, Delegate b)
static Delegate Remove(Delegate source, Delegate value)
static void SuppressFinalize(object obj)
static string[] GetDirectories(string path)
static bool Exists(string path)
static string[] GetFiles(string path)
static bool Exists(string path)
static void Delete(string path)
static string Combine(string path1, string path2)
static string GetFileName(string path)
static string GetDirectoryName(string path)
static Encoding GetEncoding(int codepage)
static void Exit(object obj)
static void Enter(object obj)
IEnumerator< T > GetEnumerator()
ExtractExistingFileAction
override string ToString()