pt.tumba.ngram.compression
Class PPMDecompress
java.lang.Object
pt.tumba.ngram.compression.PPMDecompress
public final class PPMDecompress
- extends java.lang.Object
Command-line function for decompressing files or streams.
Usage:
java PPMDecompress [Order [FileIn [FileOut]]]
Order
: Order of PPM model to use.
FileIn
: File to decompress. If not specified, uses stdin
FileOut
: Name of file into which to write the decompressed output.
Directory must exist. If not specified, writes to stdout
.
For example, java PPMDeCompress 5 foo.ppm foo
uses order 5 compression
to decompress file foo.ppm
to file foo
. Similarly, proc1 | PPMDecompress 8 | proc2
takes input from the standard out of proc1
and sends the decompressed
stream to proc2
.
- Author:
- Bruno Martins
- See Also:
PPMCompress
Method Summary |
static void |
main(java.lang.String[] args)
Decompress according to the command line specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USAGE_MESSAGE
private static java.lang.String USAGE_MESSAGE
PPMDecompress
public PPMDecompress()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Decompress according to the command line specification. See class documentation for
description.
- Parameters:
args
- The command line input, tokenized.
- Throws:
java.io.IOException
- If there is an underlying IO exception.