Skip to content

Commit 54f6e61

Browse files
committed
SimpleZip -> FastZip
1 parent 2f083d5 commit 54f6e61

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/Zip/Compression/Streams/DeflaterOutputStream.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ public virtual void Finish()
343343
/// </summary>
344344
public override void Close()
345345
{
346-
if ( !isClosed )
347-
{
346+
if ( !isClosed ) {
348347
isClosed = true;
349348
Finish();
350349
if ( isStreamOwner ) {

src/Zip/SimpleZip.cs renamed to src/Zip/FastZip.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
namespace ICSharpCode.SharpZipLib.Zip
4242
{
43-
public class SimpleZipEvents
43+
public class FastZipEvents
4444
{
4545
public ProcessDirectoryDelegate ProcessDirectory;
4646
public ProcessFileDelegate ProcessFile;
@@ -92,17 +92,17 @@ public void OnProcessDirectory(string directory, bool hasMatchingFiles)
9292
}
9393

9494
/// <summary>
95-
/// SimpleZip provides facilities for creating and extracting zip files.
95+
/// FastZip provides facilities for creating and extracting zip files.
9696
/// Only relative paths are supported.
9797
/// </summary>
98-
public class SimpleZip
98+
public class FastZip
9999
{
100-
public SimpleZip()
100+
public FastZip()
101101
{
102102
this.events = null;
103103
}
104104

105-
public SimpleZip(SimpleZipEvents events)
105+
public FastZip(FastZipEvents events)
106106
{
107107
this.events = events;
108108
}
@@ -218,8 +218,7 @@ void AddFileContents(string name)
218218
FileStream stream = File.OpenRead(name);
219219
try {
220220
int length;
221-
do
222-
{
221+
do {
223222
length = stream.Read(buffer, 0, buffer.Length);
224223
outputStream.Write(buffer, 0, length);
225224
} while ( length > 0 );
@@ -342,7 +341,7 @@ public ZipNameTransform NameTransform
342341
ConfirmOverwriteDelegate confirmDelegate;
343342
bool restoreDateTime = false;
344343
bool createEmptyDirectories = false;
345-
SimpleZipEvents events;
344+
FastZipEvents events;
346345
ZipNameTransform nameTransform;
347346
#endregion
348347
}

0 commit comments

Comments
 (0)