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
 java.lang.String readLine()
          Read a line of input, allowing the user to see what is being typed.
 java.lang.String readLineNoEcho()
          Read a line of input, but do not echo back to the user what is being typed.
 

Method Detail

readLine

java.lang.String readLine()
                          throws java.io.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:
java.io.IOException

readLineNoEcho

java.lang.String readLineNoEcho()
                                throws java.io.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:
java.io.IOException


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