org.at4j.comp.lzma.prog
Class Lzma

java.lang.Object
  extended by org.at4j.support.prog.AbstractProgram
      extended by org.at4j.comp.lzma.prog.Lzma

public final class Lzma
extends AbstractProgram

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.
 

Since:
1.0
Author:
Karl Gustafsson
See Also:
UnLzma

Constructor Summary
Lzma()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class org.at4j.support.prog.AbstractProgram
getArg, getParentLocation, isFlagArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lzma

public Lzma()
Method Detail

main

public static void main(String[] args)
                 throws InterruptedException
Throws:
InterruptedException