public class InputStreamCommandInput extends CommandInput
CommandInput
with an input streamConstructor 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
CommandInput
readLine
in class CommandInput
IOException
public String readMaskedString(String prompt) throws IOException
CommandInput
readMaskedString
in class CommandInput
IOException
public void close() throws IOException
CommandInput
close
in class CommandInput
IOException
Copyright © 2008–2018. All rights reserved.