public class BufferedReaderPromptInput extends Object implements PromptInput
PromptInput implementation that delegates to a buffered reader. Note that because there is no Java
API that allows for reading input without echoing the typed input, this method's readLineNoEcho() really
does echo (i.e. it is the same as readLine()).| Constructor and Description |
|---|
BufferedReaderPromptInput(BufferedReader r) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BufferedReaderPromptInput(BufferedReader r)
public String readLine() throws IOException
PromptInputreadLine in interface PromptInputIOExceptionpublic String readLineNoEcho() throws IOException
PromptInputreadLineNoEcho in interface PromptInputIOExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.