public class InputStreamCommandInput extends CommandInput
CommandInput with an input stream| Constructor and Description |
|---|
InputStreamCommandInput(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes and releases relevant resources.
|
String |
readLine()
Reads a single line from linput.
|
String |
readMaskedString(String prompt)
Reads input without echo'ing back keyboard input.
|
public InputStreamCommandInput(InputStream in)
in - Given input streampublic String readLine() throws IOException
CommandInputreadLine in class CommandInputIOExceptionpublic String readMaskedString(String prompt) throws IOException
CommandInputreadMaskedString in class CommandInputIOExceptionpublic void close()
throws IOException
CommandInputclose in class CommandInputIOExceptionCopyright © 2008–2019. All rights reserved.