name.angoca.db2sa.cli.jline
Class JlineInputReader
java.lang.Object
name.angoca.db2sa.cli.jline.JlineInputReader
- All Implemented Interfaces:
- InputReader
public final class JlineInputReader
- extends Object
- implements InputReader
Implementation of the input reader using JLine.
Control Version
- 0.0.1 Class creation.
- 0.0.2 'this' to access attributes.
- 0.0.3 No override.
- 0.0.4 final.
- 1.0.0 Moved to version 1.
- Version:
- 1.0.0 2009-07-19
- Author:
- Andres Gomez Casanova (AngocA)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JlineInputReader
public JlineInputReader(String prompt)
throws InputReaderException
- Constructor that flushes the stream.
- Parameters:
prompt
- Prompt to show in each line of the console.
- Throws:
InputReaderException
- If there is a problem flushing the stream.
readString
public String readString()
throws InputReaderException
- Description copied from interface:
InputReader
- Reads the phrases written by the user.
- Specified by:
readString
in interface InputReader
- Returns:
- Phrase written by the user.
- Throws:
InputReaderException
- If some problem occurs.
Andres Gomez Casanova (AngocA) 
This work is licensed under a Creative Commons Attribution 3.0 Unported License.