C# Класс Tar, StepsDB-alpha

The tar class implements a simplistic version of the traditional UNIX tar command. It currently supports creating, listing, and extracting from archives. It supports GZIP, unix compress and bzip2 compression GNU long filename extensions are supported, POSIX extensions are not yet supported... See the help (-? or --help) for option details.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
InstanceMain ( string argv ) : void

This is the "real" main. The class main() instantiates a tar object for the application and then calls this method. Process the arguments and perform the requested operation.

Main ( string argv ) : void

The main entry point of the tar class.

ShowTarProgressMessage ( TarArchive archive, TarEntry entry, string message ) : void

Display progress information on console

Tar ( ) : System

Initialise default instance of Tar. Sets up the default userName with the system 'UserName' property.

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

Метод Описание
DecodeMode ( int mode ) : string
DecodeType ( int type, bool slashTerminated ) : string
GetFilesForSpec ( string spec ) : string[]
ProcessArguments ( string args ) : int

Process arguments, handling options, and return the index of the first non-option argument.

SharpZipVersion ( ) : string
ShowHelp ( ) : void

Print help information.

Version ( ) : void

Print version information.

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

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

This is the "real" main. The class main() instantiates a tar object for the application and then calls this method. Process the arguments and perform the requested operation.
public InstanceMain ( string argv ) : void
argv string
Результат void

Main() публичный статический Метод

The main entry point of the tar class.
public static Main ( string argv ) : void
argv string
Результат void

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

Display progress information on console
public ShowTarProgressMessage ( TarArchive archive, TarEntry entry, string message ) : void
archive ICSharpCode.SharpZipLib.Tar.TarArchive
entry ICSharpCode.SharpZipLib.Tar.TarEntry
message string
Результат void

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

Initialise default instance of Tar. Sets up the default userName with the system 'UserName' property.
public Tar ( ) : System
Результат System