C# Class withSIX.Core.Tools.GzipTools

Mostra file Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
DecompressGzip ( byte compressedBytes ) : byte[]
Gzip ( IAbsoluteFilePath file, IAbsoluteFilePath dest = null, bool preserveFileNameAndModificationTime = true, ITProgress status = null ) : string
GzipAuto ( IAbsoluteFilePath inputFile, IAbsoluteFilePath outputFile = null, bool preserveFileNameAndModificationTime = true, ITProgress status = null ) : string
GzipStdOut ( IAbsoluteFilePath inputFile, IAbsoluteFilePath outputFile = null, bool preserveFileNameAndModificationTime = true, ITProgress status = null ) : string
UnpackSingleGzip ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile, ITProgress progress = null ) : void
UnpackSingleGzipWithFallbackAndRetry ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile ) : void

Private Methods

Method Description
UnpackSingleZipWithUpdaters ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile ) : void

Method Details

DecompressGzip() public method

public DecompressGzip ( byte compressedBytes ) : byte[]
compressedBytes byte
return byte[]

Gzip() public method

public Gzip ( IAbsoluteFilePath file, IAbsoluteFilePath dest = null, bool preserveFileNameAndModificationTime = true, ITProgress status = null ) : string
file IAbsoluteFilePath
dest IAbsoluteFilePath
preserveFileNameAndModificationTime bool
status ITProgress
return string

GzipAuto() public method

public GzipAuto ( IAbsoluteFilePath inputFile, IAbsoluteFilePath outputFile = null, bool preserveFileNameAndModificationTime = true, ITProgress status = null ) : string
inputFile IAbsoluteFilePath
outputFile IAbsoluteFilePath
preserveFileNameAndModificationTime bool
status ITProgress
return string

GzipStdOut() public method

public GzipStdOut ( IAbsoluteFilePath inputFile, IAbsoluteFilePath outputFile = null, bool preserveFileNameAndModificationTime = true, ITProgress status = null ) : string
inputFile IAbsoluteFilePath
outputFile IAbsoluteFilePath
preserveFileNameAndModificationTime bool
status ITProgress
return string

UnpackSingleGzip() public method

public UnpackSingleGzip ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile, ITProgress progress = null ) : void
sourceFile IAbsoluteFilePath
destFile IAbsoluteFilePath
progress ITProgress
return void

UnpackSingleGzipWithFallbackAndRetry() public method

public UnpackSingleGzipWithFallbackAndRetry ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile ) : void
sourceFile IAbsoluteFilePath
destFile IAbsoluteFilePath
return void