This runnable class emulates the
lzma
command. It understands a
subset of
lzma
's command line arguments.
The program compresses one or several files. A file is compressed to a new
file with ".lzma" added to the name of the original file. The original file
is deleted after it has been successfully compressed.
Usage:
java -cp [classpath] org.at4j.comp.lzma.prog.Lzma [options] file[s]
Where:
classpath - Should include the at4j, lzma and entityfs-core Jars.
options - Command options. See below.
file[s] - The files to compress.
Options:
-c - Write the compressed data to standard output and do not delete
the original files.
--decompress
--uncompress
-d - Decompress files (instead of compressing them).
--suffix suf
-S suf - Use the suffix "suf" instead of ".gz" for the compressed files.
--timing - After building the archive, print out how long it took.