name.angoca.db2sa.cli.jline
Class JlineInputReader

Package class diagram package JlineInputReader
java.lang.Object
  extended by 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

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
JlineInputReader(String prompt)
          Constructor that flushes the stream.
 
Method Summary
 String readString()
          Reads the phrases written by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.