public class LineReader extends Object
| Constructor and Description |
|---|
LineReader() |
| Modifier and Type | Method and Description |
|---|---|
static String |
readMaskedString(String prompt,
PrintStream outStrm)
Reads a line of text from the user without it being visible to
onlookers.
|
static String |
readString(String prompt,
PrintStream outStrm)
Reads a line of text from the user.
|
public static String readString(String prompt, PrintStream outStrm) throws IOException
prompt - short line of text to act as a promptoutStrm - print stream to use for prompt output - typically
System.errIOExceptionpublic static String readMaskedString(String prompt, PrintStream outStrm) throws IOException
prompt - short line of text to act as a promptoutStrm - print stream to use for output - typically System.errIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.