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

Extracts a TAR archive.
Inheritance: ArchiveExtractor
Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Execute() protected méthode

protected Execute ( ) : void
Résultat void

StreamToFile() protected méthode

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.
Résultat void

UpdateProgress() protected méthode

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