|
40 | 40 |
|
41 | 41 | namespace ICSharpCode.SharpZipLib.Zip
|
42 | 42 | {
|
43 |
| - public class SimpleZipEvents |
| 43 | + public class FastZipEvents |
44 | 44 | {
|
45 | 45 | public ProcessDirectoryDelegate ProcessDirectory;
|
46 | 46 | public ProcessFileDelegate ProcessFile;
|
@@ -92,17 +92,17 @@ public void OnProcessDirectory(string directory, bool hasMatchingFiles)
|
92 | 92 | }
|
93 | 93 |
|
94 | 94 | /// <summary>
|
95 |
| - /// SimpleZip provides facilities for creating and extracting zip files. |
| 95 | + /// FastZip provides facilities for creating and extracting zip files. |
96 | 96 | /// Only relative paths are supported.
|
97 | 97 | /// </summary>
|
98 |
| - public class SimpleZip |
| 98 | + public class FastZip |
99 | 99 | {
|
100 |
| - public SimpleZip() |
| 100 | + public FastZip() |
101 | 101 | {
|
102 | 102 | this.events = null;
|
103 | 103 | }
|
104 | 104 |
|
105 |
| - public SimpleZip(SimpleZipEvents events) |
| 105 | + public FastZip(FastZipEvents events) |
106 | 106 | {
|
107 | 107 | this.events = events;
|
108 | 108 | }
|
@@ -218,8 +218,7 @@ void AddFileContents(string name)
|
218 | 218 | FileStream stream = File.OpenRead(name);
|
219 | 219 | try {
|
220 | 220 | int length;
|
221 |
| - do |
222 |
| - { |
| 221 | + do { |
223 | 222 | length = stream.Read(buffer, 0, buffer.Length);
|
224 | 223 | outputStream.Write(buffer, 0, length);
|
225 | 224 | } while ( length > 0 );
|
@@ -342,7 +341,7 @@ public ZipNameTransform NameTransform
|
342 | 341 | ConfirmOverwriteDelegate confirmDelegate;
|
343 | 342 | bool restoreDateTime = false;
|
344 | 343 | bool createEmptyDirectories = false;
|
345 |
| - SimpleZipEvents events; |
| 344 | + FastZipEvents events; |
346 | 345 | ZipNameTransform nameTransform;
|
347 | 346 | #endregion
|
348 | 347 | }
|
|
0 commit comments