public class LineReader
extends java.lang.Object
| Constructor and Description |
|---|
LineReader() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
readMaskedString(java.lang.String prompt,
java.io.PrintStream outStrm)
Reads a line of text from the user without it being visible to
onlookers.
|
static java.lang.String |
readString(java.lang.String prompt,
java.io.PrintStream outStrm)
Reads a line of text from the user.
|
public static java.lang.String readString(java.lang.String prompt,
java.io.PrintStream outStrm)
throws java.io.IOException
prompt - short line of text to act as a promptoutStrm - print stream to use for prompt output - typically
System.errjava.io.IOExceptionpublic static java.lang.String readMaskedString(java.lang.String prompt,
java.io.PrintStream outStrm)
throws java.io.IOException
prompt - short line of text to act as a promptoutStrm - print stream to use for output - typically System.errjava.io.IOException