C# Class Naos.Foundation.FileCompressionHelper

Mostra file Open project: vip32/Naos

Public Methods

Method Description
Compress ( Stream input, string destinationPath ) : void

Compress the stream to a file (Gzip).

Compress ( string sourcePath, string destinationPath = null ) : void

Compress the file (Gzip).

Decompress ( string sourcePath, Stream output ) : void

Decompress the file (Gzip).

Decompress ( string sourcePath, string destinationPath = null ) : void

Decompress the file (Gzip).

Method Details

Compress() public static method

Compress the stream to a file (Gzip).
public static Compress ( Stream input, string destinationPath ) : void
input Stream the stream to compress
destinationPath string Path to the compressed file.
return void

Compress() public static method

Compress the file (Gzip).
public static Compress ( string sourcePath, string destinationPath = null ) : void
sourcePath string Path to the file to compress.
destinationPath string Path to the compressed file.
return void

Decompress() public static method

Decompress the file (Gzip).
public static Decompress ( string sourcePath, Stream output ) : void
sourcePath string Path to the file to decompress.
output Stream
return void

Decompress() public static method

Decompress the file (Gzip).
public static Decompress ( string sourcePath, string destinationPath = null ) : void
sourcePath string Path to the file to decompress.
destinationPath string Path to the decompressed file.
return void