C# Class NodeService.Zip

Provides functionality to zip and folder/Files into a *.zip file or memorystream.
Exibir arquivo Open project: chris-tomich/Glyma

Public Methods

Method Description
ExtractZipFileFromZipStream ( Stream fileStream ) : ZipFile

Returns a package that can be traversed

GetPartStream ( ZipFile zipFile, ZipEntry zipEntry ) : Stream

Private Methods

Method Description
CopyNonSeekableStream ( Stream source, Stream outputStream ) : void
CopyStream ( System sourceStream, System outputStream ) : void

Copies one filestream to another.

GetSeekableStream ( Stream sourceStream ) : Stream

Method Details

ExtractZipFileFromZipStream() public static method

Returns a package that can be traversed
public static ExtractZipFileFromZipStream ( Stream fileStream ) : ZipFile
fileStream Stream the memorystream containing the zip file.
return ICSharpCode.SharpZipLib.Zip.ZipFile

GetPartStream() public static method

public static GetPartStream ( ZipFile zipFile, ZipEntry zipEntry ) : Stream
zipFile ICSharpCode.SharpZipLib.Zip.ZipFile
zipEntry ICSharpCode.SharpZipLib.Zip.ZipEntry
return Stream