org.rhq.enterprise.communications.util.prefs
Interface PromptInput

All Known Implementing Classes:
BufferedReaderPromptInput

public interface PromptInput

Implementations of this class will need to obtain input from the user and return that input as a String.

Author:
John Mazzitelli

Method Summary
 String readLine()
          Read a line of input, allowing the user to see what is being typed.
 String readLineNoEcho()
          Read a line of input, but do not echo back to the user what is being typed.
 

Method Detail

readLine

String readLine()
                throws IOException
Read a line of input, allowing the user to see what is being typed.

Returns:
the line of input entered by the user
Throws:
IOException

readLineNoEcho

String readLineNoEcho()
                      throws IOException
Read a line of input, but do not echo back to the user what is being typed. This is used mainly when asking for things like passwords in which you do not want people looking over the user's shoulder spying what is being typed.

Returns:
the line of input entered by the user
Throws:
IOException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.