name.angoca.db2sa.cli.jline
Class JlineInterfaceController
java.lang.Object
name.angoca.db2sa.cli.AbstractInterfaceController
name.angoca.db2sa.cli.jline.JlineInterfaceController
public class JlineInterfaceController
- extends AbstractInterfaceController
This is the interface controller that manage the read and the printer.
Control Version
- 0.0.1 Class creation.
- 0.0.2 Annotations.
- 0.0.3 Execution state.
- 0.0.4 Enum.
- 0.0.5 Read string just once.
- 0.0.6 Name of a state.
- 1.0.0 Moved to version 1.
- Version:
- 1.0.0 2009-07-19
- Author:
- Andres Gomez Casanova (AngocA)
Method Summary |
void |
start()
Start to read commands from the user and process them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JlineInterfaceController
public JlineInterfaceController(String prompt)
throws InputReaderException
- Constructor that creates a reader and a printer.
- Parameters:
prompt
- Prompt to show in each line of the console.@throws
InputReaderException When there is a problem establishing the
input or the output.
- Throws:
InputReaderException
- When there is a problem establishing the input or the output.
start
public final void start()
throws AbstractDB2SAException
- Start to read commands from the user and process them.
- Specified by:
start
in class AbstractInterfaceController
- Throws:
AbstractDB2SAException
- When there is a IO problem.
Andres Gomez Casanova (AngocA) 
This work is licensed under a Creative Commons Attribution 3.0 Unported License.