C# Class DynamicSugar.Compression.GZip

Exibir arquivo Open project: fredericaltorres/DynamicSugarNet

Public Methods

Method Description
GZipFile ( string fileName, string extension = "gzip" ) : string

Gzip a file.

GZipFolder ( string path, string wildCard ) : void
UnGZipFile ( string fileName ) : string
Unzip ( byte bytes ) : byte[]
UnzipAsString ( byte bytes ) : string
Zip ( byte bytes ) : byte[]
Zip ( string str ) : byte[]

Private Methods

Method Description
CopyTo ( Stream src, Stream dest ) : void

Method Details

GZipFile() public static method

Gzip a file.
public static GZipFile ( string fileName, string extension = "gzip" ) : string
fileName string
extension string
return string

GZipFolder() public static method

public static GZipFolder ( string path, string wildCard ) : void
path string
wildCard string
return void

UnGZipFile() public static method

public static UnGZipFile ( string fileName ) : string
fileName string
return string

Unzip() public static method

public static Unzip ( byte bytes ) : byte[]
bytes byte
return byte[]

UnzipAsString() public static method

public static UnzipAsString ( byte bytes ) : string
bytes byte
return string

Zip() public static method

public static Zip ( byte bytes ) : byte[]
bytes byte
return byte[]

Zip() public static method

public static Zip ( string str ) : byte[]
str string
return byte[]