C# Class ZeroInstall.Store.Implementations.Archives.TarExtractor

Extracts a TAR archive.
Inheritance: ArchiveExtractor
Exibir arquivo Open project: 0install/0install-win Class Usage Examples

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Execute ( ) : void
StreamToFile ( Stream stream, FileStream fileStream ) : void

Helper method for ArchiveExtractor.WriteFile.

UpdateProgress ( ) : void

Updates TaskBase.UnitsProcessed to reflect the number of bytes extracted so far.

Private Methods

Method Description
IsExecutable ( TarEntry entry ) : bool

Determines whether a TarEntry was created with the executable flag set.

TarExtractor ( [ stream, [ target ) : System

Prepares to extract a TAR archive contained in a stream.

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Execute() protected method

protected Execute ( ) : void
return void

StreamToFile() protected method

Helper method for ArchiveExtractor.WriteFile.
protected StreamToFile ( Stream stream, FileStream fileStream ) : void
stream Stream The containing the entry data to write to a file.
fileStream System.IO.FileStream Stream access to the file to write.
return void

UpdateProgress() protected method

Updates TaskBase.UnitsProcessed to reflect the number of bytes extracted so far.
protected UpdateProgress ( ) : void
return void