tribble.util
Class FileFlater

java.lang.Object
  extended by tribble.util.FileFlater

public class FileFlater
extends java.lang.Object

File deflater/inflater.

Since:
2001-08-23
Version:
$Revision: 1.2 $ $Date: 2003/02/26 15:51:57 $
Author:
David R. Tribble, david@tribble.com.
Copyright ©2001-2003 by David R. Tribble, all rights reserved.
Permission is granted to freely use and distribute this source code provided that the original copyright and authorship notices remain intact.

Constructor Summary
FileFlater()
          Default constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Execute this class as a program.
 int run(java.lang.String[] args)
          Execute this program class.
 void usage()
          Display a program usage message and then punt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFlater

public FileFlater()
Default constructor.

Since:
1.1, 2001-08-23
Method Detail

main

public static void main(java.lang.String[] args)
Execute this class as a program.

Parameters:
args - Command line arguments.
Since:
1.1, 2001-08-23

usage

public void usage()
Display a program usage message and then punt.

Since:
1.1, 2001-09-11

run

public int run(java.lang.String[] args)
Execute this program class.

Usage

Compresses or decompresses the contents of a file.

    java FileFlater [-option...] [in [out]]

Options:

-c
Specifies that the input file is to be compressed (this is the default).

-d
Specifies that the input file is to be decompressed.

If specified, input is read from the file named in, otherwise input is read from the standard input. A file name of "-" also specifies that input is to be read from the standard input.

If specified, output is written to the file named out, otherwise output is written to the standard output. A file name of "-" also specifies that output is to be written to the standard output.

Parameters:
args - The command line arguments.
Since:
1.1, 2001-08-23