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

## org.jini.rio.tools.cli
Interface OptionHandler

    public interface OptionHandler

Define plugin interface for CLI option handlers. An OptionHandler is responsible for providing a option, or activity, that will be used through the CLI.

Method Summary
`String` | `getUsage()` Get the usage of the command
`String` | `process(String input, BufferedReader br, PrintStream out)` Process the option.

Method Detail

### process

    String process(String input,
                   BufferedReader br,
                   PrintStream out)

  Process the option.

  Parameters:
    `input` - Parameters for the option, may be null
    `br` - An optional BufferdReader, used if the option requires input. if this is null, the option handler may create a BufferedReader to handle the input
    `out` - The PrintStream to use if the option prints results or choices for the user. Must not be null
  Returns:
    The result of the action.

### getUsage

    String getUsage()

  Get the usage of the command

  Returns:
    Command usage

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

Copyright © Project Rio.