public abstract class CommandInput extends Object
| Constructor and Description |
|---|
CommandInput() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes and releases relevant resources.
|
abstract String |
readLine()
Reads a single line from linput.
|
abstract String |
readMaskedString(String prompt)
Reads input without echo'ing back keyboard input.
|
public void close()
throws IOException
IOExceptionpublic abstract String readLine() throws IOException
IOExceptionpublic abstract String readMaskedString(String prompt) throws IOException
IOExceptionCopyright © 2008–2019. All rights reserved.