The tar class implements a weak reproduction of the
traditional UNIX tar command. It currently supports
creating, listing, and extracting from archives. It
also supports GZIP-ed archives with the '-z' flag.
See the usage (-? or --usage) for option details.
usage: com.ice.tar.tar has three basic modes:
com.ice.tar -c [options] archive files...
Create new archive containing files.
com.ice.tar -t [options] archive
List contents of tar archive
com.ice.tar -x [options] archive
Extract contents of tar archive.
options:
-f file, use 'file' as the tar archive
-v, verbose mode
-z, use GZIP compression
-D, debug archive and buffer operation
-b blks, set blocking size to (blks * 512) bytes
-o, write a V7 format archive rather than ANSI
-u name, set user name to 'name'
-U id, set user id to 'id'
-g name, set group name to 'name'
-G id, set group id to 'id'
-?, print usage information
--trans, translate 'text/*' files
--mime file, use this mime types file and translate
--usage, print usage information
--version, print version information
The translation options will translate from local line
endings to UNIX line endings of '\\n' when writing tar
archives, and from UNIX line endings into local line endings
when extracting archives.
Written by Tim Endres
This software has been placed into the public domain.
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.