C# Класс Naos.Foundation.FileCompressionHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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).

Описание методов

Compress() публичный статический Метод

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.
Результат void

Compress() публичный статический Метод

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.
Результат void

Decompress() публичный статический Метод

Decompress the file (Gzip).
public static Decompress ( string sourcePath, Stream output ) : void
sourcePath string Path to the file to decompress.
output Stream
Результат void

Decompress() публичный статический Метод

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.
Результат void