public class LineReader
extends java.lang.Object
Constructor | Description |
---|---|
LineReader() |
Modifier and Type | Method | 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.IOException
public 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
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.