public class CFDriver
extends java.lang.Object
CodeFormatter
bean can be used.
The CFDriver is a stand-alone tool that will instantiate a
CodeFormatter
bean, configure it according to your
command-line arguments, and invoke the formatting. Since the
default source of input is stdin
, and the default
target for output is stdout
, a CFDriver
can also be used as a filter.
CodeFormatter
Constructor | Description |
---|---|
CFDriver() |
Not used.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
main(java.lang.String[] argv) |
A driver for
CodeFormatter . |
public static void main(java.lang.String[] argv)
CodeFormatter
.
Usage:
args:
[-in fileName] default: <STDIN>
[-out fileName] default: <STDOUT>
[-maxLine length] default: 74
[-step size] default: 2
[-delim group] default: (+
[-sdelim group] default: ,
java org.apache.cf.CFDriver [args]