CFDriver (Bean Scripting Framework API)
Keywords: org.apache.bsf.util.cf.CFDriver class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.bsf.util.cf
Class CFDriver

    java.lang.Object
      org.apache.bsf.util.cf.CFDriver

public class CFDriver
extends java.lang.Object

This is an example of how a `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.

Author:
  Matthew J. Duftler
See Also:
  `CodeFormatter`

Constructor Summary
`CFDriver()` Not used.

Method Summary
`static void` | `main(java.lang.String[] argv)` A driver for `CodeFormatter`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CFDriver

    public CFDriver()

  Not used.

Method Detail

### main

    public static void main(java.lang.String[] argv)

  A driver for `CodeFormatter`.

  Usage: ``

        java org.apache.cf.CFDriver [args]

          args:

            [-in      fileName]   default: <STDIN>
            [-out     fileName]   default: <STDOUT>
            [-maxLine   length]   default: 74
            [-step        size]   default: 2
            [-delim      group]   default: (+
            [-sdelim     group]   default: ,

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD