C# Class Cmd_Tar, SharpZipLib

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.
Datei anzeigen Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Methods

Method Description
Cmd_Tar ( ) : System

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

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

Private Methods

Method Description
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.

Method Details

Cmd_Tar() public method

Initialise default instance of Cmd_Tar. Sets up the default userName with the system 'UserName' property.
public Cmd_Tar ( ) : System
return System

InstanceMain() public method

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
return void

Main() public static method

The main entry point of the tar class.
public static Main ( string argv ) : void
argv string
return void

ShowTarProgressMessage() public method

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
return void