C# Класс withSIX.Core.Presentation.Services.CompressionUtil

Наследование: ICompressionUtil, IPresentationService
Показать файл Открыть проект

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

Метод Описание
CreateTar ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
CreateZip ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
PackFiles ( string>.IEnumerable items, IAbsoluteFilePath path ) : void
UnpackGzip ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile, ITProgress progress = null ) : void
UnpackInternal ( IAbsoluteFilePath sourceFile, IAbsoluteDirectoryPath outputFolder, bool overwrite = false, bool fullPath = true, bool checkFileIntegrity = true, ITProgress progress = null ) : void
UnpackSingleInternal ( string sourceFile, string destFile ) : void

Приватные методы

Метод Описание
GetArchiveWithGzWorkaround ( IAbsoluteFilePath sourceFile, string ext ) : IArchive
GetString ( byte bytes ) : string
ReadHeader ( IAbsoluteFilePath sourceFile ) : string
TryReadHeader ( IAbsoluteFilePath sourceFile ) : string
TryUnpackArchive ( IAbsoluteFilePath destFile, ITProgress progress, GZipArchive archive ) : void
UnpackArchive ( IAbsoluteDirectoryPath outputFolder, bool overwrite, IArchive archive, ExtractionOptions options, IAbsoluteFilePath sourceFile ) : void

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

CreateTar() публичный Метод

public CreateTar ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
directory IAbsoluteDirectoryPath
outputFile IAbsoluteFilePath
Результат void

CreateZip() публичный Метод

public CreateZip ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
directory IAbsoluteDirectoryPath
outputFile IAbsoluteFilePath
Результат void

PackFiles() публичный Метод

public PackFiles ( string>.IEnumerable items, IAbsoluteFilePath path ) : void
items string>.IEnumerable
path IAbsoluteFilePath
Результат void

UnpackGzip() публичный Метод

public UnpackGzip ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile, ITProgress progress = null ) : void
sourceFile IAbsoluteFilePath
destFile IAbsoluteFilePath
progress ITProgress
Результат void

UnpackInternal() публичный Метод

public UnpackInternal ( IAbsoluteFilePath sourceFile, IAbsoluteDirectoryPath outputFolder, bool overwrite = false, bool fullPath = true, bool checkFileIntegrity = true, ITProgress progress = null ) : void
sourceFile IAbsoluteFilePath
outputFolder IAbsoluteDirectoryPath
overwrite bool
fullPath bool
checkFileIntegrity bool
progress ITProgress
Результат void

UnpackSingleInternal() публичный Метод

public UnpackSingleInternal ( string sourceFile, string destFile ) : void
sourceFile string
destFile string
Результат void